]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
What a bummer. Fix it properly...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 7 Mar 2013 16:35:59 +0000 (16:35 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 7 Mar 2013 16:35:59 +0000 (16:35 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28793 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_strip_flag.cmake

index 133f03314441f4d4bdae0f80ff364a28da86d4b0..5d7fe82a3bb13d52a4901558a6faaecffe6e01a8 100644 (file)
 #
 
 MACRO(STRIP_FLAG _variable _flag)
-  SET(${_variable} "${${_variable}} ")
-  STRING(REPLACE "${_flag} " "" "${_variable}" ${${_variable}})
+  SET(${_variable} " ${${_variable}} ")
+  STRING(REPLACE " " "  " "${_variable}" ${${_variable}})
+  STRING(REPLACE " ${_flag} " "" "${_variable}" ${${_variable}})
+  STRING(REPLACE "  " " " "${_variable}" ${${_variable}})
   STRING(STRIP "${${_variable}}" ${_variable})
 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.