ECM and QNX

Alex Merry alex.merry at kde.org
Sat Oct 18 18:28:56 UTC 2014


On Thursday 09 October 2014 13:59:56 Rafael Roquetto wrote:
> 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.

Well, the KDE Frameworks, and hence the applications built on them -- the main 
users of KDECompilerSettings.cmake -- don't officially support gcc prior to 
4.5. So you may well find that you run into problems due to missing features 
in the compiler.

That said, I'd be willing to accept a patch to KDECompilerSettings.cmake that 
wasn't overly intrusive, but it would have to be written (or at least tested) 
by someone with access to a QNX system.

Alex


More information about the Kde-buildsystem mailing list