Re: [CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried
Robert Maynard schreef op 07.03.2017 16:34: The issue is that GCC 4.8 c++1y does offer support for some c++14 features ( https://gcc.gnu.org/projects/cxx-status.html#cxx14 ) and therefore that is why you getting a compile time failure. You could try using target_compile_features instead but it on

Re: [CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Robert Maynard
The issue is that GCC 4.8 c++1y does offer support for some c++14 features ( https://gcc.gnu.org/projects/cxx-status.html#cxx14 ) and therefore that is why you getting a compile time failure. You could try using target_compile_features instead but it only verifies language level features and is not

[CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried
I am trying to let cmake exit with an error when the c++ compiler doesn't support at least the C++14 standard. According to the cmake documentation this should be possible with variables CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED. However when I compile the simple helloworld example bel