summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-29 16:02:06 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-29 20:34:24 (GMT)
commit8a93d3ea1806229460f16c447b3d5ebcc80ed29c (patch)
treee2751480d79b9abd05f3b0b49a009686d5138f73 /Source/cmNinjaTargetGenerator.h
parentea7ca139ea4c3c88e432e722c9cfe1dd86a4359f (diff)
downloadCMake-8a93d3ea1806229460f16c447b3d5ebcc80ed29c.zip
CMake-8a93d3ea1806229460f16c447b3d5ebcc80ed29c.tar.gz
CMake-8a93d3ea1806229460f16c447b3d5ebcc80ed29c.tar.bz2
Ninja: Use "deps = msvc" only for C and CXX (#15253)
The "/showIncludes" flag is only available with MS C and C++ compilers, and on compilers that "simulate" them (like Intel for Windows). Fix our logic to choose this type only for MS tools with these languages. All other cases need to use "deps = gcc" and define DEP_FILE in the build rule.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r--Source/cmNinjaTargetGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h
index 17cf517..5733fde 100644
--- a/Source/cmNinjaTargetGenerator.h
+++ b/Source/cmNinjaTargetGenerator.h
@@ -42,7 +42,7 @@ public:
std::string GetTargetName() const;
- bool needsDepFile(const std::string& lang);
+ bool NeedDepTypeMSVC(const std::string& lang) const;
protected: