]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix: Remove invalid characters from test names in ENABLE_IF_(SUPPORTED...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 16:56:22 +0000 (16:56 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 16:56:22 +0000 (16:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@29079 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_enable_if_links.cmake
deal.II/cmake/macros/macro_enable_if_supported.cmake

index 2a1bf93127f19b3006f82dd68674dcdebffe58ba..6fcfb9133c873aefe39de3fd066e14d42f0c8503 100644 (file)
@@ -24,6 +24,8 @@
 MACRO(ENABLE_IF_LINKS _variable _flag)
   STRING(STRIP "${_flag}" _flag_stripped)
   STRING(REGEX REPLACE "^-" "" _flag_name "${_flag_stripped}")
+  STRING(REPLACE "," "" _flag_name "${_flag_name}")
+  STRING(REPLACE "-" "_" _flag_name "${_flag_name}")
 
   IF(NOT "${_flag_stripped}" STREQUAL "")
     ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${_flag_stripped}")
index ed63ec4788c66df14d6a13906b84ba33f0fe485d..bd989f8877b40c101e357c10e220e1d00770c6ca 100644 (file)
@@ -24,6 +24,8 @@ MACRO(ENABLE_IF_SUPPORTED _variable _flag)
   STRING(STRIP "${_flag}" _flag_stripped)
   IF(NOT "${_flag_stripped}" STREQUAL "")
     STRING(REGEX REPLACE "^-" "" _flag_name "${_flag_stripped}")
+    STRING(REPLACE "," "" _flag_name "${_flag_name}")
+    STRING(REPLACE "-" "_" _flag_name "${_flag_name}")
     CHECK_CXX_COMPILER_FLAG(
       "${_flag_stripped}"
       DEAL_II_HAVE_FLAG_${_flag_name}

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.