diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-09 07:06:01 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-09 07:06:01 (GMT) |
commit | 0412e5c9330606b29ef61199b44e99daf5f28097 (patch) | |
tree | 2a911162933f95c6594d6e86f03f4a33aac4f881 /Modules/CMakeClDeps.cmake | |
parent | 941afa571c9f45c52bb935bad1c3b83fe415372e (diff) | |
download | CMake-0412e5c9330606b29ef61199b44e99daf5f28097.zip CMake-0412e5c9330606b29ef61199b44e99daf5f28097.tar.gz CMake-0412e5c9330606b29ef61199b44e99daf5f28097.tar.bz2 |
Ninja: assume cmcldeps in the same dir as cmake
Diffstat (limited to 'Modules/CMakeClDeps.cmake')
-rw-r--r-- | Modules/CMakeClDeps.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeClDeps.cmake b/Modules/CMakeClDeps.cmake index 435a6c5..9fac729 100644 --- a/Modules/CMakeClDeps.cmake +++ b/Modules/CMakeClDeps.cmake @@ -1,5 +1,5 @@ IF(MSVC_C_ARCHITECTURE_ID AND CMAKE_GENERATOR MATCHES "Ninja" AND CMAKE_C_COMPILER) - FIND_PROGRAM(CMAKE_CMCLDEPS_EXECUTABLE NAMES cmcldeps.exe) + STRING(REPLACE "cmake.exe" "cmcldeps.exe" CMAKE_CMCLDEPS_EXECUTABLE ${CMAKE_COMMAND}) SET(showdir ${CMAKE_BINARY_DIR}/CMakeFiles/ShowIncludes) FILE(WRITE ${showdir}/foo.h "\n") FILE(WRITE ${showdir}/main.c "#include \"foo.h\" \nint main(){}\n") |