From: maier Date: Thu, 7 Mar 2013 16:35:59 +0000 (+0000) Subject: What a bummer. Fix it properly... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a301bbdcccc622eb64bcb1297964cc1939e5cad;p=dealii-svn.git What a bummer. Fix it properly... git-svn-id: https://svn.dealii.org/branches/branch_cmake@28793 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/macros/macro_strip_flag.cmake b/deal.II/cmake/macros/macro_strip_flag.cmake index 133f033144..5d7fe82a3b 100644 --- a/deal.II/cmake/macros/macro_strip_flag.cmake +++ b/deal.II/cmake/macros/macro_strip_flag.cmake @@ -20,8 +20,10 @@ # 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()