From: Daniel Arndt Date: Sat, 5 Oct 2024 11:43:25 +0000 (-0400) Subject: Unset CMAKE_TRY_COMPILE_CONFIGURATION after use X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17750%2Fhead;p=dealii.git Unset CMAKE_TRY_COMPILE_CONFIGURATION after use --- 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