summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorMaikel van den Hurk <maikel.vandenhurk@tomtom.com>2018-10-27 20:27:33 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-29 16:50:55 (GMT)
commit99728fe27c993d8482fb55a4780670767d5fab72 (patch)
treeaf9a1c63e9e5a6d9c6f54d8ba6be0e9f26e43baa /Modules/Compiler
parentfd02538974dd952a8639d371c2c0067d30d5469a (diff)
downloadCMake-99728fe27c993d8482fb55a4780670767d5fab72.zip
CMake-99728fe27c993d8482fb55a4780670767d5fab72.tar.gz
CMake-99728fe27c993d8482fb55a4780670767d5fab72.tar.bz2
QNX: Update qcc depfile flags to be compliant with ccache
Pass the flags to the preprocessor phase via `-Wp,`. This is accepted both by qcc and ccache.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/QCC.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/QCC.cmake b/Modules/Compiler/QCC.cmake
index 9ba9900..9df8269 100644
--- a/Modules/Compiler/QCC.cmake
+++ b/Modules/Compiler/QCC.cmake
@@ -11,7 +11,7 @@ macro(__compiler_qcc lang)
set(CMAKE_${lang}_COMPILE_OPTIONS_TARGET "-V")
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-Wp,-isystem,")
- set(CMAKE_DEPFILE_FLAGS_${lang} "-Wc,-MD,<DEPFILE>,-MT,<OBJECT>,-MF,<DEPFILE>")
+ set(CMAKE_DEPFILE_FLAGS_${lang} "-Wp,-MD,<DEPFILE> -Wp,-MT,<OBJECT> -Wp,-MF,<DEPFILE>")
set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Wl,")
set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",")