mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
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:
committed by
Craig Scott
parent
f15cfd891d
commit
eddbd62d0f
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user