[Qt-creator] How to get syntax highlighting for CMakeLists.txt?

Nikos Chantziaras realnc at gmail.com
Thu Mar 28 16:20:56 CET 2013


On 28/03/13 15:25, Michael Jackson wrote:
>
> On Mar 28, 2013, at 7:30 AM, Nikos Chantziaras wrote:
>>
>> Sorry for the monologue folks, but I've come across another issue now.
>> After actually building the project, Creator now red-underlines some
>> lines in my CMakeLists.txt, even though there's nothing wrong with them.
>>
>> Is this a known problem?
>
> I have noticed that Creator will red line:
>
> if ( something....
>
> but NOT
>
> if(something ....
>
> Note the difference in spaces. Both are Valid CMake codes.

Nah, it just underlines regardless of spaces.  This is the first time I 
use cmake though, so maybe there's indeed something I'm doing wrong. 
Though it's a very simple project file:

   http://oi48.tinypic.com/xdjf6.jpg

As far as I can tell, everything is fine :-/




More information about the Qt-creator mailing list