[CMake] Accessing the CMAKE_CXX_FLAGS that a project was built with?

David Doria daviddoria at gmail.com
Tue May 8 08:26:47 EDT 2012


I use ITK in my project. I want to determine if the ITK build that the
user has selected to use (via cmake ITK_DIR) has been built with a
particular compiler flag, namely

 -DCMAKE_CXX_FLAGS=-std=gnu++0x

Is there a way to do this via cmake in my project?

David


More information about the CMake mailing list