summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/XL.cmake
diff options
context:
space:
mode:
authorEphi Sinowitz <esinowitz@bloomberg.net>2018-04-12 19:44:42 (GMT)
committerEphi Sinowitz <esinowitz@bloomberg.net>2018-04-17 19:35:49 (GMT)
commitd67962c55a4be2653d40b27c4f5fc38fc5c223b0 (patch)
treeff8aae630902a27a314241eca09033fd4869f76d /Modules/Compiler/XL.cmake
parentccd17a557cbf8ada18207a72eea78d2adcc9d752 (diff)
downloadCMake-d67962c55a4be2653d40b27c4f5fc38fc5c223b0.zip
CMake-d67962c55a4be2653d40b27c4f5fc38fc5c223b0.tar.gz
CMake-d67962c55a4be2653d40b27c4f5fc38fc5c223b0.tar.bz2
SunPro,XL: Add depfile flags to support Ninja generator
Add CMAKE_DEPFILE_FLAGS_${lang} to SunPro and XL. These flags are used by the Ninja generator.
Diffstat (limited to 'Modules/Compiler/XL.cmake')
-rw-r--r--Modules/Compiler/XL.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/XL.cmake b/Modules/Compiler/XL.cmake
index e527a04..3361f8f 100644
--- a/Modules/Compiler/XL.cmake
+++ b/Modules/Compiler/XL.cmake
@@ -30,6 +30,8 @@ macro(__compiler_xl lang)
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
+ set(CMAKE_DEPFILE_FLAGS_${lang} "-MF <DEPFILE> -qmakedep=gcc")
+
# CMAKE_XL_CreateExportList is part of the AIX XL compilers but not the linux ones.
# If we found the tool, we'll use it to create exports, otherwise stick with the regular
# create shared library compile line.