From: Simon Rit Date: Sun, 4 Dec 2011 17:18:08 +0000 (+0100) Subject: Add quotes in case variables are not defined X-Git-Tag: v1.3.0~154 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=39562adceed3b608834959f2ed079b945187bb22;p=clitk.git Add quotes in case variables are not defined --- diff --git a/cmake/gengetopt/CMakeLists.txt b/cmake/gengetopt/CMakeLists.txt index 2f586f9..7829924 100644 --- a/cmake/gengetopt/CMakeLists.txt +++ b/cmake/gengetopt/CMakeLists.txt @@ -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)