Re: [CMake] Specify compiler flags as list?

2015-10-12 Thread Dan Kegel
On Mon, Oct 12, 2015 at 8:22 PM, Matthew S Wallace wrote: > Consider the following CMakeLists.txt (hello.cpp is some standard hello world > program) > > cmake_minimum_required (VERSION 2.6) > project(HelloWorld) > add_executable(hello hello.cpp) > set(WARNING_FLAGS -Wno-char-subscripts -Wno-unuse

[CMake] Specify compiler flags as list?

2015-10-12 Thread Matthew S Wallace
Consider the following CMakeLists.txt (hello.cpp is some standard hello world program) cmake_minimum_required (VERSION 2.6) project(HelloWorld) add_executable(hello hello.cpp) set(WARNING_FLAGS -Wno-char-subscripts -Wno-unused-local-typedefs) #set(WARNING_FLAGS "-Wno-char-subscripts -Wno-unused-l