Commit 0be3fe43 authored by Casey Goodlett's avatar Casey Goodlett
Browse files

Add new external boost options only for windows

We should evaluate usage on linux and mac before adding universally.
parent dbf1fbe9
set(BOOST_INCLUDEDIR "${BOOST_INCLUDEDIR}" CACHE PATH "Location of boost header files" FORCE)
set(BOOST_LIBRARYDIR "${BOOST_LIBRARYDIR}" CACHE PATH "Location of boost library files" FORCE)
set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost REQUIRED)
# This is a hack. If boost was found by some other mechanism then the
# assumptions here would fail.
add_extra_cmake_args(
-DBOOST_INCLUDEDIR:PATH=${BOOST_INCLUDEDIR}
-DBOOST_LIBRARYDIR:PATH=${BOOST_LIBRARYDIR}
)
set(BOOST_INCLUDEDIR "${BOOST_INCLUDEDIR}" CACHE PATH "Location of boost header files")
set(BOOST_LIBRARYDIR "${BOOST_LIBRARYDIR}" CACHE PATH "Location of boost library files")
set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost REQUIRED)
# Here we make the assumption that setting these paths will work. This might fail
# if boost was found via registry entry or BOOST_ROOT entry instead. We are also
# not checking if required packages in boost were found.
add_extra_cmake_args(
-DBOOST_INCLUDEDIR:PATH=${BOOST_INCLUDEDIR}
-DBOOST_LIBRARYDIR:PATH=${BOOST_LIBRARYDIR}
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment