James Bigler wrote:
I have a some code that I need to test and I need to feed it a default
set of compiler flags. I'm trying to set CMAKE_C_FLAGS via the -D
system to override the default ones CMake provides.
SET(COMPILE_TEST_SOURCE ${CMAKE_BINARY_DIR}/test/compile-test.c)
FILE(WRITE ${CO
I have a some code that I need to test and I need to feed it a default
set of compiler flags. I'm trying to set CMAKE_C_FLAGS via the -D
system to override the default ones CMake provides.
SET(COMPILE_TEST_SOURCE ${CMAKE_BINARY_DIR}/test/compile-test.c)
FILE(WRITE ${COMPILE_TEST_SOURCE} "i