]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor CMake fixes 11785/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 20 Feb 2021 21:46:53 +0000 (16:46 -0500)
committerDavid Wells <drwells@email.unc.edu>
Mon, 22 Feb 2021 14:05:03 +0000 (09:05 -0500)
cmake/macros/macro_enable_language_optional.cmake

index edaf818c2c339687325fb4dd318ef53a7278bb48..72abf1d4e97f91324fa63726e3a69bce89b3418b 100644 (file)
@@ -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()

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.