From 39562adceed3b608834959f2ed079b945187bb22 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Sun, 4 Dec 2011 18:18:08 +0100 Subject: [PATCH] Add quotes in case variables are not defined --- cmake/gengetopt/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.47.1