summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-30 19:54:09 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-30 19:54:35 (GMT)
commit699cd032128afcda78e12a76b227faa6c1f6a258 (patch)
tree75108aab1577046bf04894d868b534bc0afafc1a /Source/cmNinjaTargetGenerator.cxx
parenteb2c23868fe712a0c79b3afe6618e20507c0f9f5 (diff)
downloadCMake-699cd032128afcda78e12a76b227faa6c1f6a258.zip
CMake-699cd032128afcda78e12a76b227faa6c1f6a258.tar.gz
CMake-699cd032128afcda78e12a76b227faa6c1f6a258.tar.bz2
Ninja: Drop unnecessary deptype customization infrastructure
Do not pass `CMAKE_NINJA_DEPTYPE_<LANG>` in place of `deps = gcc`. If Ninja ever introduces a new dependency type we will likely need to update CMake for it anyway.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index edb0ef3..c85a6f7 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -630,10 +630,6 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang)
}
} else {
deptype = "gcc";
- const char* langdeptype = mf->GetDefinition("CMAKE_NINJA_DEPTYPE_" + lang);
- if (langdeptype) {
- deptype = langdeptype;
- }
depfile = "$DEP_FILE";
const std::string flagsName = "CMAKE_DEPFILE_FLAGS_" + lang;
std::string depfileFlags = mf->GetSafeDefinition(flagsName);