[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-buildsystem
Subject:    ECM and QNX
From:       Rafael Roquetto <rafael.roquetto () kdab ! com>
Date:       2014-10-09 16:59:56
Message-ID: 20141009165955.GA14263 () polaris
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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.

Thanks,
Rafael
-- 
Qt Developer Days 2014 - October 6 - 8 at BCC, Berlin

Rafael Roquetto | rafael.roquetto@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

["smime.p7s" (application/x-pkcs7-signature)]

_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic