summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-04 15:34:19 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-06-04 15:34:35 (GMT)
commit07bddeae14001328209f5d1fb988107a6db508cb (patch)
tree8449552580f3ed84345e648b2d915b9cd851074e /Modules/Compiler
parent1bbee86bf2b909bc3a0bae1f87cc757c744f0d21 (diff)
parent9e27881bb180748b128ff42a67e7b68e368595a3 (diff)
downloadCMake-07bddeae14001328209f5d1fb988107a6db508cb.zip
CMake-07bddeae14001328209f5d1fb988107a6db508cb.tar.gz
CMake-07bddeae14001328209f5d1fb988107a6db508cb.tar.bz2
Merge topic 'fix-ti-c-standard'
9e27881bb1 TI: Add support for C language standards Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2131
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/TI-C.cmake6
1 files changed, 6 insertions, 0 deletions
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>")