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=2682143481c57d3bbd19b8bfd75e39df2e72d515;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