Default to C++11 for all compilers (2.8)

This fixes multiple problems on latest Mac OS + Xcode. Hopefully does not cause any on other platforms.

The Xcode detection logic could use further cleanup. It's checking several old versions that are unsupported for Blender 2.8+ development.
This commit is contained in:
Mike Erwin
2016-11-29 01:01:38 -05:00
parent 8d4421b0fc
commit a76f1a7449

View File

@@ -497,11 +497,10 @@ endif()
# We default options to whatever default standard in the current compiler. # We default options to whatever default standard in the current compiler.
if(CMAKE_COMPILER_IS_GNUCC AND (NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS "6.0") AND (NOT WITH_CXX11)) if(CMAKE_COMPILER_IS_GNUCC AND (NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS "6.0") AND (NOT WITH_CXX11))
set(_c11_init ON) set(_c11_init ON)
set(_cxx11_init ON)
else() else()
set(_c11_init OFF) set(_c11_init OFF)
set(_cxx11_init OFF)
endif() endif()
set(_cxx11_init ON)
option(WITH_C11 "Build with C11 standard enabled, for development use only!" ${_c11_init}) option(WITH_C11 "Build with C11 standard enabled, for development use only!" ${_c11_init})
mark_as_advanced(WITH_C11) mark_as_advanced(WITH_C11)