]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Unset CMAKE_TRY_COMPILE_CONFIGURATION after use 17750/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 5 Oct 2024 11:43:25 +0000 (07:43 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 5 Oct 2024 11:43:25 +0000 (07:43 -0400)
cmake/setup_compiler_flags.cmake
cmake/setup_sanity_checks.cmake

index d9c438180d2a895da249bf7025368d5812a10e0b..91867b39af75d6ad2833298aa110479668b652b3 100644 (file)
@@ -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 "
index 3f075b070583b04d33d7310c57581623eee14de5..16f7988834ca927eb1448f10b07f2a075d81f41e 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.