Skip to content

Commit

Permalink
Unset CMAKE_TRY_COMPILE_CONFIGURATION after use
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Oct 5, 2024
1 parent be3e51e commit 2682143
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/setup_compiler_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
2 changes: 2 additions & 0 deletions cmake/setup_sanity_checks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2682143

Please sign in to comment.