add boost components

This commit is contained in:
cszawisza 2018-01-22 22:56:17 +01:00
parent 7bfff75822
commit 683ac08150

View File

@ -2,8 +2,10 @@ include(ExternalProject)
#https://github.com/ruslo/hunter/wiki/dev.variables #https://github.com/ruslo/hunter/wiki/dev.variables
hunter_add_package(Boost) SET(_BOOST_COMPONENTS program_options system filesystem thread)
find_package(Boost CONFIG REQUIRED) hunter_add_package(Boost COMPONENTS ${_BOOST_COMPONENTS})
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost CONFIG REQUIRED ${_BOOST_COMPONENTS})
hunter_add_package(nlohmann_json) hunter_add_package(nlohmann_json)
find_package(nlohmann_json CONFIG REQUIRED) find_package(nlohmann_json CONFIG REQUIRED)
@ -28,10 +30,11 @@ ExternalProject_Add(wt
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION} -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}
-DBOOST_ROOT=/home/bwieczor/.hunter/_Base/a412c45/f8d72b9/85521ae/Install/
-DBOOST_INCLUDEDIR=/home/bwieczor/.hunter/_Base/a412c45/f8d72b9/85521ae/Install/include/
-DBOOST_LIBRARYDIR=/home/bwieczor/.hunter/_Base/a412c45/f8d72b9/85521ae/Install/lib/
-DBoost_NO_SYSTEM_PATHS=ON -DBoost_NO_SYSTEM_PATHS=ON
-DBoost_USE_STATIC_LIBS=ON
-DBOOST_PREFIX=/home/bwieczor/.hunter/_Base/a412c45/2cf74e8/85521ae/Install
-DBOOST_INCLUDEDIR=/home/bwieczor/.hunter/_Base/a412c45/2cf74e8/85521ae/Install/include/
-DBOOST_LIBRARYDIR=/home/bwieczor/.hunter/_Base/a412c45/2cf74e8/85521ae/Install/lib/
-DBUILD_EXAMPLES=OFF -DBUILD_EXAMPLES=OFF
-DINSTALL_RESOURCES=OFF -DINSTALL_RESOURCES=OFF
-DENABLE_SSL=OFF -DENABLE_SSL=OFF