mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-05 22:59:43 -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("Found Boost components:")
|
||||||
message(" ${Boost_FIND_COMPONENTS}")
|
message(" ${Boost_FIND_COMPONENTS}")
|
||||||
endif()
|
endif()
|
||||||
|
# Restore project's policies
|
||||||
|
cmake_policy(POP)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user