mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03: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:
1 parent
f15cfd891d
commit
eddbd62d0f
1 file changed
+2
@@ -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