[Cmake-commits] CMake branch, next, updated. v3.1.0-rc2-734-ged3c5ae

Stephen Kelly steveire at gmail.com
Tue Nov 18 18:34:44 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  ed3c5ae3a121e1f7e040edc6309b361a09762e16 (commit)
       via  d49f1c5e9400c6b5d6dc205b4dadad2fa21f6eb0 (commit)
      from  000dc4c2141e7bae14b677137b8771b469d00ae1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ed3c5ae3a121e1f7e040edc6309b361a09762e16
commit ed3c5ae3a121e1f7e040edc6309b361a09762e16
Merge: 000dc4c d49f1c5
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Tue Nov 18 18:34:43 2014 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Nov 18 18:34:43 2014 -0500

    Merge topic 'use-latest-language-dialects' into next
    
    d49f1c5e Build CMake with most-recent available language dialect.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d49f1c5e9400c6b5d6dc205b4dadad2fa21f6eb0
commit d49f1c5e9400c6b5d6dc205b4dadad2fa21f6eb0
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Wed Nov 19 00:30:40 2014 +0100
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Wed Nov 19 00:32:03 2014 +0100

    Build CMake with most-recent available language dialect.
    
    When CMake is built with CMake 3.1 or later, appropriate -std=
    options will be added for GNU and Clang compilers while building
    C and CXX code.
    
    This allows taking advantage of 'hidden' language features such
    as move-constructors, and allows the standard library to enable
    the use of more-advanced features too, where available.
    
    This does not change CMake host compiler requirements.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58e0a1f..90fc1a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,10 @@ if("${CMake_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
   endmacro()
 endif()
 
+# Use most-recent available language dialects with GNU and Clang
+set(CMAKE_C_STANDARD 11)
+set(CMAKE_CXX_STANDARD 14)
+
 # option to set the internal encoding of CMake to UTF-8
 option(CMAKE_ENCODING_UTF8 "Use UTF-8 encoding internally (experimental)." OFF)
 mark_as_advanced(CMAKE_ENCODING_UTF8)

-----------------------------------------------------------------------

Summary of changes:
 CMakeLists.txt |    4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list