From eddbd62d0f7a1cbc6ae3eb1e6c79b955125502d4 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Mon, 24 Jul 2017 11:34:34 +0200 Subject: FindBoost: pop policy stack before returning CMake would give a fatal error if the policy stack was cleaned up upon exiting the module. --- Modules/FindBoost.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index cc273e0..b4abf75 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -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() -- cgit v0.12