From: Kefu Chai Date: Sun, 18 Mar 2018 08:07:09 +0000 (+0800) Subject: cmake: expose Boost_VERSION X-Git-Tag: v13.1.0~262^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=faa84ab9758f7e6816eb516a211d7c710fec74e4;p=ceph.git cmake: expose Boost_VERSION to appease the consumers of FindBoost.cmake, they are expecting this variable. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index 63320b712cac..1bc28ad0f820 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})