summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@here.com>2017-07-24 09:34:34 (GMT)
committerCraig Scott <craig.scott@crascit.com>2017-07-26 21:49:48 (GMT)
commiteddbd62d0f7a1cbc6ae3eb1e6c79b955125502d4 (patch)
tree27baa976473f9cd77174cf6b790b5580044ecd33 /Modules
parentf15cfd891d1e01247ed285320ae32b6c3182ac8f (diff)
downloadCMake-eddbd62d0f7a1cbc6ae3eb1e6c79b955125502d4.zip
CMake-eddbd62d0f7a1cbc6ae3eb1e6c79b955125502d4.tar.gz
CMake-eddbd62d0f7a1cbc6ae3eb1e6c79b955125502d4.tar.bz2
FindBoost: pop policy stack before returning
CMake would give a fatal error if the policy stack was cleaned up upon exiting the module.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index cc273e0..b4abf75 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -244,6 +244,8 @@ if (NOT Boost_NO_BOOST_CMAKE)
message("Found Boost components:")
message(" ${Boost_FIND_COMPONENTS}")
endif()
+ # Restore project's policies
+ cmake_policy(POP)
return()
endif()
endif()