Merge topic 'optional-latest-language-dialects'

de022e89 Add options to build CMake without latest language dialects
This commit is contained in:
Brad King 2014-12-08 09:07:16 -05:00 committed by CMake Topic Stage
commit cf54d8597d
1 changed files with 6 additions and 2 deletions

View File

@ -37,8 +37,12 @@ if("${CMake_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
endif() endif()
# Use most-recent available language dialects with GNU and Clang # Use most-recent available language dialects with GNU and Clang
set(CMAKE_C_STANDARD 11) if(NOT DEFINED CMAKE_C_STANDARD)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_C_STANDARD 11)
endif()
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
# option to set the internal encoding of CMake to UTF-8 # option to set the internal encoding of CMake to UTF-8
option(CMAKE_ENCODING_UTF8 "Use UTF-8 encoding internally (experimental)." OFF) option(CMAKE_ENCODING_UTF8 "Use UTF-8 encoding internally (experimental)." OFF)