summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/TI-C.cmake
diff options
context:
space:
mode:
authorNico Müller <nicomueller1991@googlemail.com>2017-10-16 21:27:05 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-18 13:43:22 (GMT)
commitad9327d936dbbad8d6c818b41fe7c93b7d6a76e6 (patch)
tree9ab43029cb622f7e116119dba9dae32f63a393f2 /Modules/Compiler/TI-C.cmake
parent60f982aab4fc99bab5cafee1db148f61ba3b9d77 (diff)
downloadCMake-ad9327d936dbbad8d6c818b41fe7c93b7d6a76e6.zip
CMake-ad9327d936dbbad8d6c818b41fe7c93b7d6a76e6.tar.gz
CMake-ad9327d936dbbad8d6c818b41fe7c93b7d6a76e6.tar.bz2
Compiler/TI: Add support for depfile generation for Ninja
TI C/C++ compiler are now able to generate dependency files during compilation. Fixes: #17360
Diffstat (limited to 'Modules/Compiler/TI-C.cmake')
-rw-r--r--Modules/Compiler/TI-C.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/TI-C.cmake b/Modules/Compiler/TI-C.cmake
index ebc79f4..e149237 100644
--- a/Modules/Compiler/TI-C.cmake
+++ b/Modules/Compiler/TI-C.cmake
@@ -2,6 +2,8 @@ set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
set(CMAKE_LINK_LIBRARY_FLAG "--library=")
set(CMAKE_INCLUDE_FLAG_C "--include_path=")
+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>")
set(CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> --preproc_only --c_file=<SOURCE> <DEFINES> <INCLUDES> <FLAGS> --output_file=<PREPROCESSED_SOURCE>")