Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTCreator doesn't parse CMake defined ifdef's
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?
Seems this a known issue:
Any 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.
Any tools to convert the cmake to qmake?
No, but there is always "qmake -project" which will examine the files in your directory and produce a skeleton .pro-file.