ECM and QNX
Albert Astals Cid
aacid at kde.org
Sat Oct 11 14:07:28 UTC 2014
El Dijous, 9 d'octubre de 2014, a les 13:59:56, Rafael Roquetto va escriure:
> Hello,
>
> KDECompilerSettings.cmake:176 adds -std=c++0x to CMAKE_CXX_FLAGS for GNU
> compilers. Would it be possible to pass -std=gnu++0x instead?
>
> Rationale:
> The underlying GCC is v4.4, which doesn't know -std=c++11
> yet, only c++0x.
>
> We can't use -std=c++0x here, because the QNX headers
> depend on some GNU extensions (nanosleep() was one that I
> saw), so it has to be gnu++0x, ie. STD C++ + GNU extensions.
>
>
> I am not sure what's the best way to detect a QNX compiler, I am no CMake
> expert.
See modules/ECMEnableSanitizers.cmake you can always check for the compiler
version like done there, no?
Cheers,
Albert
>
> Thanks,
> Rafael
More information about the Kde-buildsystem
mailing list