Re: [CMake] CMake flags to TRY_RUN

2007-05-22 Thread James Bigler
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

[CMake] CMake flags to TRY_RUN

2007-05-22 Thread James Bigler
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