From 699cd032128afcda78e12a76b227faa6c1f6a258 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Jan 2019 14:54:09 -0500 Subject: Ninja: Drop unnecessary deptype customization infrastructure Do not pass `CMAKE_NINJA_DEPTYPE_` in place of `deps = gcc`. If Ninja ever introduces a new dependency type we will likely need to update CMake for it anyway. --- Source/cmNinjaTargetGenerator.cxx | 4 ---- 1 file changed, 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); -- cgit v0.12