diff --git a/cmake/FindAllRequirements.cmake b/cmake/FindAllRequirements.cmake index 2ed291b..1dc7c5e 100644 --- a/cmake/FindAllRequirements.cmake +++ b/cmake/FindAllRequirements.cmake @@ -2,8 +2,9 @@ include(ExternalProject) #https://github.com/ruslo/hunter/wiki/dev.variables -hunter_add_package(Boost) -find_package(Boost CONFIG REQUIRED) +SET(_BOOST_COMPONENTS program_options system filesystem thread) +hunter_add_package(Boost COMPONENTS ${_BOOST_COMPONENTS}) +find_package(Boost CONFIG REQUIRED ${_BOOST_COMPONENTS}) hunter_add_package(nlohmann_json) find_package(nlohmann_json CONFIG REQUIRED)