QTCreator doesn't parse CMake defined ifdef's
-
Hi.
I'm working on a project which has some of it's defined defined in CMakelists as definitions.
This causes the files inside the defines not be parsed by QTC, therefore any advanced functionality does not work.
Any idea how to make it recognize the define?
P.S.:
Seems this a known issue:
https://bugreports.qt-project.org/browse/QTCREATORBUG-3922Any work-around other then patching CMake or QTC?
Thanks in advance!
-
You could convert your code to qmake which is better supported or improve the CMake parser.
Note that it is enough to have a skeleton qmake project that Creator can parse and then continue to use cmake for the actual building by changing the build configuration.
-
No, but there is always "qmake -project" which will examine the files in your directory and produce a skeleton .pro-file.