[Qt-creator] CMake and Macros

Peter Kümmel syntheticpp at gmx.net
Sat Mar 9 00:22:35 CET 2013


Could someone please test if the macro detection works for cmake projects on Windows?

I filed a bug report but it seems it's not reproducible:
https://bugreports.qt-project.org/browse/QTCREATORBUG-8864

Attached a simple test cmake project.
Nothing should be greyed out in the editor for foo.cpp file.

Many thanks,
Peter
-------------- next part --------------


void foo()
{
#ifdef XYZ
    don't compile
#endif
}
-------------- next part --------------
cmake_minimum_required(VERSION 2.8)

add_definitions(-DXYZ)
add_library(foo foo.cpp)



More information about the Qt-creator mailing list