[CMake] Find out current CXX_FLAGS at build time?

Zachary Pincus zpincus at stanford.edu
Wed Feb 15 09:09:44 EST 2006


>> 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?
>
> Does this help ?
> http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools

Thanks. I'm not sure if that's quite what I need, though. These  
variables will expand at cmake configure time. But for IDEs, the  
build style isn't set until build time, so I assume there needs to be  
a separate build-time variable to look at. Maybe I'm interpreting  
things wrong, though.

Zach


More information about the CMake mailing list