FindBoost: pop policy stack before returning

CMake would give a fatal error if the policy stack was cleaned up
upon exiting the module.
This commit is contained in:
Cristian Adam
2017-07-24 11:34:34 +02:00
committed by Craig Scott
parent f15cfd891d
commit eddbd62d0f

View File

@@ -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()