]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Cleanup
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 30 Mar 2013 12:25:43 +0000 (12:25 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 30 Mar 2013 12:25:43 +0000 (12:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@29112 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_check_cxx_compiler_bug.cmake

index 8a3ea412e0ab54cfa1d82052fa11856dc27cf659..ea2c41b433f07a7cccfaaf1a7f25538d989ecc10 100644 (file)
 #
 
 MACRO(CHECK_CXX_COMPILER_BUG _source _var)
-  CHECK_CXX_SOURCE_COMPILES(
-    "${_source}"
-    ${_var}_OK)
+  IF(NOT DEFINED ${_var}_OK)
+    CHECK_CXX_SOURCE_COMPILES(
+      "${_source}"
+      ${_var}_OK
+      )
+    IF(${_var}_OK)
+      MESSAGE(STATUS "Test successful, do not define ${_var}")
+    ELSE()
+      MESSAGE(STATUS "Test unsuccessful, define ${_var}")
+    ENDIF()
+  ENDIF()
 
   IF(${_var}_OK)
-    MESSAGE(STATUS "Test successful, do not define ${_var}")
+    SET(${_var})
   ELSE()
-    MESSAGE(STATUS "Test unsuccessful, define ${_var}")
     SET(${_var} TRUE)
   ENDIF()
 ENDMACRO()

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.