From f90899c7b95436406d79b4f12d24f6fc5e65d604 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 20 Feb 2021 16:46:53 -0500 Subject: [PATCH] Minor CMake fixes --- cmake/macros/macro_enable_language_optional.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/macros/macro_enable_language_optional.cmake b/cmake/macros/macro_enable_language_optional.cmake index edaf818c2c..72abf1d4e9 100644 --- a/cmake/macros/macro_enable_language_optional.cmake +++ b/cmake/macros/macro_enable_language_optional.cmake @@ -25,7 +25,7 @@ # [1] http://public.kitware.com/Bug/view.php?id=9220 # # Usage: -# ENABLE_LANGUAGE_FORTRAN_OPTIONAL(language) +# ENABLE_LANGUAGE_OPTIONAL(language) # # where language is either C or Fortran # @@ -65,12 +65,13 @@ MACRO(ENABLE_LANGUAGE_OPTIONAL _language) ENABLE_LANGUAGE(${_language}) ELSE() MESSAGE(STATUS "No working ${_language} compiler found, disabling ${_language}") + SET(DEAL_II_${_language}_COMPILER_WORKS FALSE CACHE INTERNAL "" FORCE) ENDIF() ELSE() # # Enable the language depending on the cached result from a former run: # - IF(DEAL_II_${_language}_COMPILER_WORKS) + IF(${DEAL_II_${_language}_COMPILER_WORKS}) ENABLE_LANGUAGE(${_language}) ENDIF() ENDIF() -- 2.39.5