From a0ee57d933df433ddfd73eb3a025e10dd2aeb3fc Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 30 Oct 2023 10:57:16 +0100 Subject: [PATCH] findboost: fix logic fix https://github.com/jrl-umi3218/jrl-cmakemodules/commit/ffd8d4441e62c9d4b48997acee03d43c3d98a3cb#diff-61fcbab488c8e9c131b5c70aab7aae76ddf3743bf5a26a72dd0130ac6ea93c94L632 introduced in https://github.com/jrl-umi3218/jrl-cmakemodules/pull/620 --- boost/FindBoost.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/boost/FindBoost.cmake b/boost/FindBoost.cmake index 4be6aedc4..d655d2a6e 100644 --- a/boost/FindBoost.cmake +++ b/boost/FindBoost.cmake @@ -626,6 +626,8 @@ if (NOT Boost_NO_BOOST_CMAKE) find_package_handle_standard_args(Boost HANDLE_COMPONENTS CONFIG_MODE) _boost_set_legacy_variables_from_config() + # Restore project's policies + cmake_policy(POP) return() endif() endif() @@ -2588,6 +2590,3 @@ list(REMOVE_DUPLICATES _Boost_COMPONENTS_SEARCHED) list(SORT _Boost_COMPONENTS_SEARCHED) set(_Boost_COMPONENTS_SEARCHED "${_Boost_COMPONENTS_SEARCHED}" CACHE INTERNAL "Components requested for this build tree.") - -# Restore project's policies -cmake_policy(POP)