Brad King wrote: > On 09/16/2015 03:56 AM, Daniel Wirtz wrote: >> Basically, CMake silently continues to configure past any >> set(CMAKE_C_STANDARD <value>) command even if CMake does >> not have any information on the necessary flags for the current compiler. > > For reference, this was discussed during the original design in > this thread: > > target_compile_features remaining issues, 2014-04-21 13:16:16 GMT > http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9812/focus=9996 > > IIRC it led to the creation of <LANG>_STANDARD_REQUIRED. Read through > that thread for more details.
I think <LANG>_STANDARD_REQUIRED is not related to what Daniel described. Daniel is talking about using a compiler for which no features are recorded at all afaik. >> - if additionally XX_REQUIRED is set on cmake or target level, throw a >> fatal error on configure time as cmake cannot ensure >> to set the correct flags required for the requested C standard. > > Steve, do you remember if/why/where we decided to ignore these properties > on compilers for which know language standard levels or features are > known? A brief search didn't reveal the relevant mailing list thread. I think it was to avoid everyone having to wrap target_compile_features() calls in conditions to avoid errors with unsupported compilers, and with unsupported versions of supported compilers. When the feature was initially added, it did not cover as large a matrix as today. There is information about adding support for compile features at http://www.cmake.org/cmake/help/v3.3/manual/cmake-developer.7.html#adding-compile-features Thanks, Steve. -- 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