[cmake-developers] Wrong cxx-extension flags
Brad King
brad.king at kitware.com
Thu Jul 14 16:06:17 EDT 2016
On 07/14/2016 03:59 PM, Kornel Benko wrote:
>> What you can do is not add your own flag and instead do
>>
>> set(CMAKE_CXX_STANDARD 14)
>> set(CMAKE_CXX_EXTENSIONS OFF)
>
> I did this, as it seemed least invasive.
> But now, instead of '-std=gnu++1' I got '-std=c++11' which is not better.
> Of course, since QT5.7 explicitly requires C++11 features, we don't need C++14.
I don't quite follow here. What flag to you want to get?
Don't add your own flag explicitly. Some combination of
the above settings can get the flag you need.
-Brad
More information about the cmake-developers
mailing list