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

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to