summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-19 11:28:08 -0400
committerBrad King <brad.king@kitware.com>2017-04-19 11:28:08 -0400
commitb99fbf3b16449a6027e90ed7f01f240761157332 (patch)
tree32907853ef6df0800e850e2e5efc3ce5cd531add
parentf612719a77e46cff6c6258e1394547c3476a5a21 (diff)
parent2516bccdf69b49ee55ef4b6bfa329d97ec5f3799 (diff)
downloadcmake-b99fbf3b16449a6027e90ed7f01f240761157332.tar.gz
Merge branch 'FindBoost-fix-backslash-tolerance' into release
-rw-r--r--Modules/FindBoost.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 2dd08e10aa..52de6fc8d6 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -893,7 +893,7 @@ endfunction()
# This function would append corresponding directories if MSVC is a current compiler,
# so having `BOOST_ROOT` would be enough to specify to find everything.
#
-macro(_Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS componentlibvar basedir)
+function(_Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS componentlibvar basedir)
if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(_arch_suffix 64)
@@ -915,8 +915,9 @@ macro(_Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS componentlib
elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14)
list(APPEND ${componentlibvar} ${basedir}/lib${_arch_suffix}-msvc-8.0)
endif()
+ set(${componentlibvar} ${${componentlibvar}} PARENT_SCOPE)
endif()
-endmacro()
+endfunction()
#
# End functions/macros