From faa84ab9758f7e6816eb516a211d7c710fec74e4 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 18 Mar 2018 16:07:09 +0800 Subject: [PATCH] cmake: expose Boost_VERSION to appease the consumers of FindBoost.cmake, they are expecting this variable. Signed-off-by: Kefu Chai --- cmake/modules/BuildBoost.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index 63320b712cace..1bc28ad0f8203 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -179,6 +179,7 @@ macro(build_boost version) ExternalProject_Get_Property(Boost install_dir) set(Boost_INCLUDE_DIRS ${install_dir}/include) set(Boost_INCLUDE_DIR ${install_dir}/include) + set(Boost_VERSION ${version}) # create the directory so cmake won't complain when looking at the imported # target file(MAKE_DIRECTORY ${Boost_INCLUDE_DIRS}) -- 2.39.5