]> Creatis software - clitk.git/commitdiff
Add quotes in case variables are not defined
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Sun, 4 Dec 2011 17:18:08 +0000 (18:18 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Sun, 4 Dec 2011 17:18:08 +0000 (18:18 +0100)
cmake/gengetopt/CMakeLists.txt

index 2f586f93acc526a5f4d86233b0e4813876ab214a..7829924967130d20593c54a1795abdb5f0b068ca 100644 (file)
@@ -6,10 +6,10 @@ ADD_DEFINITIONS(-DHAVE_SSTREAM)
 ADD_DEFINITIONS(-DHAVE_NAMESPACES)
 
 # Remove compiler warnings
-STRING(REPLACE "/W3" "/w" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
-STRING(REPLACE "/W3" "/w" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
-STRING(REPLACE "-Wall" "-w" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
-STRING(REPLACE "-Wall" "-w" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
+STRING(REPLACE "/W3" "/w" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+STRING(REPLACE "/W3" "/w" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
+STRING(REPLACE "-Wall" "-w" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+STRING(REPLACE "-Wall" "-w" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
 
 # MSVC specific issues
 IF(MSVC)