summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-04-08 10:03:46 +0200
committerSergei Golubchik <serg@mariadb.org>2019-04-08 17:27:25 +0200
commite124ff17e07f395c34c8bfea31a2b35022919601 (patch)
tree0622f5a54d20511ec7f39a5e39339d8c816983e5
parent5023e465a9e82503c7521b2d555c8d2350528911 (diff)
downloadmariadb-git-e124ff17e07f395c34c8bfea31a2b35022919601.tar.gz
cmake: force Boost dependency as needed
because FindBoost.cmake won't do it
-rw-r--r--cmake/build_depends.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/build_depends.cmake b/cmake/build_depends.cmake
index 0d17c22cf98..333df580200 100644
--- a/cmake/build_depends.cmake
+++ b/cmake/build_depends.cmake
@@ -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)