diff options
author | Brad King <brad.king@kitware.com> | 2020-01-27 14:29:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-27 14:29:58 (GMT) |
commit | a9a1a7a32520b4f36f62be7b7a9a4da193f2ec87 (patch) | |
tree | 0786be2f8adbbeedf9764a866bc2d855381b6388 | |
parent | e0a288b0ff27905dd77b545a2d62992de420d5f0 (diff) | |
parent | 879e56f33602fc1cebaec67dd252b3eb19dc47fe (diff) | |
download | CMake-a9a1a7a32520b4f36f62be7b7a9a4da193f2ec87.zip CMake-a9a1a7a32520b4f36f62be7b7a9a4da193f2ec87.tar.gz CMake-a9a1a7a32520b4f36f62be7b7a9a4da193f2ec87.tar.bz2 |
Merge topic 'makefiles-suppress-vcs-implicit-rules'
879e56f336 makefiles: suppress RCS and SCCS implicit rules
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4264
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index dbdde48..1420f7c 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -683,9 +683,15 @@ void cmLocalUnixMakefileGenerator3::WriteSpecialTargetsTop( if (!this->IsNMake() && !this->IsWatcomWMake() && !this->BorlandMakeCurlyHack) { // turn off RCS and SCCS automatic stuff from gmake - makefileStream - << "# Remove some rules from gmake that .SUFFIXES does not remove.\n" - << "SUFFIXES =\n\n"; + constexpr const char* vcs_rules[] = { + "%,v", "RCS/%", "RCS/%,v", "SCCS/s.%", "s.%", + }; + for (auto vcs_rule : vcs_rules) { + std::vector<std::string> vcs_depend; + vcs_depend.emplace_back(vcs_rule); + this->WriteMakeRule(makefileStream, "Disable VCS-based implicit rules.", + "%", vcs_depend, no_commands, false); + } } // Add a fake suffix to keep HP happy. Must be max 32 chars for SGI make. std::vector<std::string> depends; |