[CMake] Find out current CXX_FLAGS at build time?

Zachary Pincus zpincus at stanford.edu
Wed Feb 15 08:41:51 EST 2006


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 manually feed gcc_xml the same flags that are fed to  
the real compiler.

Zach


More information about the CMake mailing list