Hi list, I'm using gcc for a c++14-based project.
To have cmake add the corresponding -std=-flag I'm setting set_property(TARGET <tgt> PROPERTY CXX_STANDARD 14) This makes that when gcc is used cmake adds -std=gnu++14 . How can I make it set -std=c++14 instead? Background: my problem is the complex literal 'i' . This literal existed in gcc as a C99 extension and the effect is kept when -std=gnu++14 is set and deactivated when -std=c++14 is set. The outcome is that '0.0i' is typed as '__complex__ double' and not 'std::complex<double>' as the standard says. regards. -- Patrick. -- 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