]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 22:23:15 +0000 (22:23 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Sep 2012 22:23:15 +0000 (22:23 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26532 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/macros/macro_strip_flag.cmake

index bf174908aba8bbecd4d42e0f23e379b0ccfb072b..fd663fc2cf6ee9e4afe72b03ad61f662837b0791 100644 (file)
@@ -1,5 +1,7 @@
 
 MACRO(STRIP_FLAG variable flag)
-  STRING(REGEX REPLACE " ${flag}" "" ${variable} ${${variable}})
+  IF(NOT "${variable}" STREQUAL "")
+    STRING(REGEX REPLACE " ${flag}" "" ${variable} ${${variable}})
+  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.