From 7685cdf112708deea9a51876039853754443b177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 22 Jul 2016 19:27:14 +0200 Subject: [PATCH] Fix CMake configuration in case CMAKE_CXX_FLAGS is empty. Thanks @LB-- for pointing that out! --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4d22dc8f2..f4ece4669 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -32,7 +32,7 @@ endif() # On MSVC remove /W3, as we are replacing it with /W4 if(MSVC) - string(REPLACE "/W3" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) + string(REPLACE "/W3" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endif() # Emscripten needs special flag to use WebGL 2