Steve,

In regard to this topic:

 Project: Determine default language dialect for the compiler.
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=77691638

 fixup! Project: Determine default language dialect for the compiler.
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=10e937ad

 fixup! Project: Determine default language dialect for the compiler.
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ba7ade5f

The default dialect computed with the compiler id may not be the
same as the effective default dialect when CMAKE_CXX_FLAGS is
considered.  One may build with -std=c++11, for example, thus
making the dialect used for compilation different than the raw
compiler default even when CMake does not add a -std= flag.

This is done for CMake itself on some dashboard builds:

 https://open.cdash.org/viewNotes.php?buildid=4011828
 set(RR_FLAGS_C "${RR_FLAGS_COMMON} -std=c11")
 set(RR_FLAGS_CXX "${RR_FLAGS_COMMON} -std=c++11 -stdlib=libc++")
 set(ENV{CFLAGS} "${RR_WARNINGS_C} ${RR_FLAGS_C}")
 set(ENV{CXXFLAGS} "${RR_WARNINGS_CXX} ${RR_FLAGS_CXX}")
 ...
 CMake_NO_C_STANDARD:BOOL=1
 CMake_NO_CXX_STANDARD:BOOL=1

These builds are where the RunCMake.CompileFeatures test failed
with this topic.

-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