summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@here.com>2017-07-24 11:34:34 +0200
committerCraig Scott <craig.scott@crascit.com>2017-07-27 07:49:48 +1000
commiteddbd62d0f7a1cbc6ae3eb1e6c79b955125502d4 (patch)
tree27baa976473f9cd77174cf6b790b5580044ecd33
parentf15cfd891d1e01247ed285320ae32b6c3182ac8f (diff)
downloadcmake-eddbd62d0f7a1cbc6ae3eb1e6c79b955125502d4.tar.gz
FindBoost: pop policy stack before returning
CMake would give a fatal error if the policy stack was cleaned up upon exiting the module.
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index cc273e085c..b4abf750f5 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()