[CMake] Find out current CXX_FLAGS at build time?

2006-02-15 Thread Zachary Pincus
Hello, I'd like to be able to determine what the current CXX_FLAGS are *at build time*. Specifically, the CXX_FLAGS used will change depending on what configuration type is selected in an IDE. Is there a variable that will expand at build time to the proper flags? This is so I can

Re: [CMake] Find out current CXX_FLAGS at build time?

2006-02-15 Thread William A. Hoffman
At 09:09 AM 2/15/2006, Zachary Pincus wrote: I'd like to be able to determine what the current CXX_FLAGS are *at build time*. Specifically, the CXX_FLAGS used will change depending on what configuration type is selected in an IDE. Is there a variable that will expand at build time to the proper

Re: [CMake] Find out current CXX_FLAGS at build time?

2006-02-15 Thread Zachary Pincus
CMAKE_C_FLAGS_DEBUG will be used in the Debug configuration of the IDE. So here's the issue: I want to add a custom command that (at build time) gets fed the same flags as the compiler. Say I do the following (modulo errors): ADD_CUSTOM_COMMAND( SOURCE ${input_cxx} COMMAND