From: maier Date: Sat, 30 Mar 2013 12:25:43 +0000 (+0000) Subject: CMake: Cleanup X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13819891434906a93b6539bdc34e33f9b59f1993;p=dealii-svn.git CMake: Cleanup git-svn-id: https://svn.dealii.org/trunk@29112 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/macros/macro_check_cxx_compiler_bug.cmake b/deal.II/cmake/macros/macro_check_cxx_compiler_bug.cmake index 8a3ea412e0..ea2c41b433 100644 --- a/deal.II/cmake/macros/macro_check_cxx_compiler_bug.cmake +++ b/deal.II/cmake/macros/macro_check_cxx_compiler_bug.cmake @@ -24,14 +24,21 @@ # 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()