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 authored and Craig Scott committed 2017-07-27 07:49:48 +10:00
1 parent f15cfd891d
commit eddbd62d0f
1 file changed
+2
+2
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()