From 7cf9a34adeedffaea9ba53a343c4a7838f008f17 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 31 Mar 2016 14:28:45 -0300 Subject: [PATCH] Fix CMAKE_C_FLAGS with multiple values when genout is compiled on MSVC Without this patch, CMAKE_C_FLAGS will be processed as a string/filename on MSVC (e.g. when CMAKE_C_FLAGS is equal to " /D_WIN32 /D_WINDOWS /W3") and the whole compilation fails. --- scripts/genout.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/genout.cmake.in b/scripts/genout.cmake.in index d57810b22..02290f32a 100644 --- a/scripts/genout.cmake.in +++ b/scripts/genout.cmake.in @@ -14,7 +14,7 @@ set(BINDIR "@CMAKE_CURRENT_BINARY_DIR@") set(AWK "@AWK@") set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@") -set(CMAKE_C_FLAGS "@CMAKE_C_FLAGS@") +set(CMAKE_C_FLAGS @CMAKE_C_FLAGS@) set(INCDIR "@CMAKE_CURRENT_BINARY_DIR@") set(PNG_PREFIX "@PNG_PREFIX@") set(PNGLIB_MAJOR "@PNGLIB_MAJOR@")