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 only verifies language level features and is not aware of standard library features such as std::string_literals.
Thanks for the clarification. I already tried setting the CXX_STANDARD and CXX_STANDARD_REQUIRED target compile features directly, but that gives the same result.
I will add an extra check for gcc >= 4.9. -- 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