cmake: force Boost dependency as needed

because FindBoost.cmake won't do it
This commit is contained in:
Sergei Golubchik 2019-04-08 10:03:46 +02:00
parent 5023e465a9
commit e124ff17e0

View file

@ -16,6 +16,11 @@ IF(RPM)
ENDIF()
ENDMACRO()
# FindBoost.cmake doesn't leave any trace, do it here
IF (Boost_INCLUDE_DIR)
FIND_FILE(Boost_config_hpp boost/config.hpp PATHS ${Boost_INCLUDE_DIR})
ENDIF()
GET_CMAKE_PROPERTY(ALL_VARS CACHE_VARIABLES)
FOREACH (V ${ALL_VARS})
GET_PROPERTY(H CACHE ${V} PROPERTY HELPSTRING)