[Cmake-commits] CMake branch, master, updated. v3.11.3-900-g07bddea

Kitware Robot kwrobot at kitware.com
Mon Jun 4 11:35:05 EDT 2018


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, master has been updated
       via  07bddeae14001328209f5d1fb988107a6db508cb (commit)
       via  9e27881bb180748b128ff42a67e7b68e368595a3 (commit)
      from  1bbee86bf2b909bc3a0bae1f87cc757c744f0d21 (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 -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=07bddeae14001328209f5d1fb988107a6db508cb
commit 07bddeae14001328209f5d1fb988107a6db508cb
Merge: 1bbee86 9e27881
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Jun 4 15:34:19 2018 +0000
Commit:     Kitware Robot <kwrobot at kitware.com>
CommitDate: Mon Jun 4 11:34:35 2018 -0400

    Merge topic 'fix-ti-c-standard'
    
    9e27881bb1 TI: Add support for C language standards
    
    Acked-by: Kitware Robot <kwrobot at kitware.com>
    Merge-request: !2131


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9e27881bb180748b128ff42a67e7b68e368595a3
commit 9e27881bb180748b128ff42a67e7b68e368595a3
Author:     Arnaud Gelas <arnaud.gelas at sensefly.com>
AuthorDate: Mon Jun 4 11:24:12 2018 +0200
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Mon Jun 4 10:48:02 2018 -0400

    TI: Add support for C language standards
    
    Set C90 and C99 compile options for TI compiler.
    
    Fixes: #18061

diff --git a/Help/manual/cmake-compile-features.7.rst b/Help/manual/cmake-compile-features.7.rst
index 634da10..658694a 100644
--- a/Help/manual/cmake-compile-features.7.rst
+++ b/Help/manual/cmake-compile-features.7.rst
@@ -361,6 +361,7 @@ following :variable:`compiler ids <CMAKE_<LANG>_COMPILER_ID>` as of the
 versions specified for each:
 
 * all compilers and versions listed above with only meta-features for C++.
+* ``TI``: Texas Instruments compiler.
 
 CMake is currently aware of the :prop_tgt:`CUDA standards <CUDA_STANDARD>`
 from the following :variable:`compiler ids <CMAKE_<LANG>_COMPILER_ID>` as of the
diff --git a/Help/release/dev/ti-c-standard.rst b/Help/release/dev/ti-c-standard.rst
new file mode 100644
index 0000000..8ec739f
--- /dev/null
+++ b/Help/release/dev/ti-c-standard.rst
@@ -0,0 +1,6 @@
+ti-c-standard
+-------------
+
+* The :manual:`Compile Features <cmake-compile-features(7)>` functionality
+  is now aware of C language standards supported by Texas Instruments C
+  compilers.
diff --git a/Modules/Compiler/TI-C.cmake b/Modules/Compiler/TI-C.cmake
index e149237..1c0f4bc 100644
--- a/Modules/Compiler/TI-C.cmake
+++ b/Modules/Compiler/TI-C.cmake
@@ -2,6 +2,12 @@ set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
 set(CMAKE_LINK_LIBRARY_FLAG "--library=")
 set(CMAKE_INCLUDE_FLAG_C "--include_path=")
 
+set(CMAKE_C90_STANDARD_COMPILE_OPTION "--c89")
+set(CMAKE_C90_EXTENSION_COMPILE_OPTION "--c89 --relaxed_ansi")
+
+set(CMAKE_C99_STANDARD_COMPILE_OPTION "--c99")
+set(CMAKE_C99_EXTENSION_COMPILE_OPTION "--c99 --relaxed_ansi")
+
 set(CMAKE_DEPFILE_FLAGS_C "--preproc_with_compile --preproc_dependency=<DEPFILE>")
 
 set(CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> --compile_only --skip_assembler --c_file=<SOURCE> <DEFINES> <INCLUDES> <FLAGS> --output_file=<ASSEMBLY_SOURCE>")

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

Summary of changes:
 Help/manual/cmake-compile-features.7.rst |    1 +
 Help/release/dev/ti-c-standard.rst       |    6 ++++++
 Modules/Compiler/TI-C.cmake              |    6 ++++++
 3 files changed, 13 insertions(+)
 create mode 100644 Help/release/dev/ti-c-standard.rst


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list