Not getting __QNX__ defined with my Qt Creator kit for QNX
-
I am using CMake and can configure/generate and compile just fine using Qt Creator 4.13. __ QNX__ is ultimately getting defined when I use the compiler for building but when I browse code the IDE doesn't believe that __ QNX__ is set. My code segments don't get highlighted and therefore some types aren't recognized, etc. Is there something I'm missing to be sure Qt Creator's syntax highlighting functionality is aware that __ QNX__ should be set to true? My understanding is that this should be discovered automatically, possibly when CMake does its test compiles?
This pic shows what I mean about not highlighting correctly:
Also, here is the kit's CMake Configuration if that helps:
Another data point: I found under Options->C++ ->Inspect C++ Code Model this output which implies that Qt Creator does know about __ QNX__ defined by the toolchain. So the lack of correct highlighting around the #ifdef sections still doesn't make sense.
Thanks!