From: David Wells Date: Sat, 20 Feb 2021 21:46:53 +0000 (-0500) Subject: Minor CMake fixes X-Git-Tag: v9.3.0-rc1~425^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11785%2Fhead;p=dealii.git Minor CMake fixes --- 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()