diff options
author | David Cole <david.cole@kitware.com> | 2012-02-07 20:35:32 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-02-07 20:35:32 (GMT) |
commit | 2619d765567bd4bee8e5976a2c5967d36487cdd6 (patch) | |
tree | de587c8ffa68c9baa77b9c0934265b24257e51ba /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 3921f1a559053dcf8c894321cb505dc4d24b3685 (diff) | |
parent | c8ef6430e09c063b74708ef0cd28f533c15fd8bd (diff) | |
download | CMake-2619d765567bd4bee8e5976a2c5967d36487cdd6.zip CMake-2619d765567bd4bee8e5976a2c5967d36487cdd6.tar.gz CMake-2619d765567bd4bee8e5976a2c5967d36487cdd6.tar.bz2 |
Merge topic 'warn-funny-path-names'
c8ef643 Allow directory names containing '=' and warn if necessary (#12934)
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 70dcfd5..dd313ca 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -562,6 +562,21 @@ cmLocalUnixMakefileGenerator3 space = " "; } + // Warn about paths not supported by Make tools. + std::string::size_type pos = tgt.find_first_of("="); + if(pos != std::string::npos) + { + cmOStringStream m; + m << + "Make rule for\n" + " " << tgt << "\n" + "has '=' on left hand side. " + "The make tool may not support this."; + cmListFileBacktrace bt; + this->GlobalGenerator->GetCMakeInstance() + ->IssueMessage(cmake::WARNING, m.str(), bt); + } + // Mark the rule as symbolic if requested. if(symbolic) { |