From 2682143481c57d3bbd19b8bfd75e39df2e72d515 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 5 Oct 2024 07:43:25 -0400 Subject: [PATCH] Unset CMAKE_TRY_COMPILE_CONFIGURATION after use --- cmake/setup_compiler_flags.cmake | 1 + cmake/setup_sanity_checks.cmake | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cmake/setup_compiler_flags.cmake b/cmake/setup_compiler_flags.cmake index d9c438180d..91867b39af 100644 --- a/cmake/setup_compiler_flags.cmake +++ b/cmake/setup_compiler_flags.cmake @@ -75,6 +75,7 @@ foreach(build ${DEAL_II_BUILD_TYPES}) DEAL_II_HAVE_USABLE_USER_FLAGS_${build} ${DEAL_II_LIBRARIES} ${DEAL_II_LIBRARIES_${build}} ) + unset(CMAKE_TRY_COMPILE_CONFIGURATION) if(NOT DEAL_II_HAVE_USABLE_USER_FLAGS_${build}) message(FATAL_ERROR " diff --git a/cmake/setup_sanity_checks.cmake b/cmake/setup_sanity_checks.cmake index 3f075b0705..16f7988834 100644 --- a/cmake/setup_sanity_checks.cmake +++ b/cmake/setup_sanity_checks.cmake @@ -93,6 +93,8 @@ foreach(build ${DEAL_II_BUILD_TYPES}) _check_linker_flags() endif() + unset(CMAKE_TRY_COMPILE_CONFIGURATION) + if(NOT DEAL_II_HAVE_USABLE_FLAGS_${build}) message(FATAL_ERROR " Configuration error: Cannot compile a test program with the final set of -- 2.39.5