summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeClDeps.cmake
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2013-10-18 10:59:47 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2013-10-24 17:48:18 (GMT)
commiteeb4aece1cf564c10d1c4e7409907ca6c92462ed (patch)
tree33cb678cf9e8faad0027231f7714e4bd49a8fa02 /Modules/CMakeClDeps.cmake
parentdca43862f13e1481619fc3ff286662ee93d14af9 (diff)
downloadCMake-eeb4aece1cf564c10d1c4e7409907ca6c92462ed.zip
CMake-eeb4aece1cf564c10d1c4e7409907ca6c92462ed.tar.gz
CMake-eeb4aece1cf564c10d1c4e7409907ca6c92462ed.tar.bz2
Ninja: use deps = gcc/msvc feature
cmcldeps is now only used for .rc file processing
Diffstat (limited to 'Modules/CMakeClDeps.cmake')
-rw-r--r--Modules/CMakeClDeps.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeClDeps.cmake b/Modules/CMakeClDeps.cmake
index 0214ead..b46e7c2 100644
--- a/Modules/CMakeClDeps.cmake
+++ b/Modules/CMakeClDeps.cmake
@@ -20,7 +20,7 @@
# in front of each include path, so it can remove it.
#
-if(MSVC_C_ARCHITECTURE_ID AND CMAKE_GENERATOR MATCHES "Ninja" AND CMAKE_C_COMPILER AND CMAKE_COMMAND)
+if(CMAKE_GENERATOR MATCHES "Ninja" AND CMAKE_C_COMPILER AND CMAKE_COMMAND)
string(REPLACE "cmake.exe" "cmcldeps.exe" CMAKE_CMCLDEPS_EXECUTABLE ${CMAKE_COMMAND})
set(showdir ${CMAKE_BINARY_DIR}/CMakeFiles/ShowIncludes)
file(WRITE ${showdir}/foo.h "\n")
@@ -30,5 +30,5 @@ if(MSVC_C_ARCHITECTURE_ID AND CMAKE_GENERATOR MATCHES "Ninja" AND CMAKE_C_COMPIL
string(REGEX MATCH "\n([^:]*:[^:]*:[ \t]*)" tmp "${outLine}")
set(localizedPrefix "${CMAKE_MATCH_1}")
set(SET_CMAKE_CMCLDEPS_EXECUTABLE "set(CMAKE_CMCLDEPS_EXECUTABLE \"${CMAKE_CMCLDEPS_EXECUTABLE}\")")
- set(SET_CMAKE_CL_SHOWINCLUDE_PREFIX "set(CMAKE_CL_SHOWINCLUDE_PREFIX \"${localizedPrefix}\")")
+ set(SET_CMAKE_CL_SHOWINCLUDES_PREFIX "set(CMAKE_CL_SHOWINCLUDES_PREFIX \"${localizedPrefix}\")")
endif()