diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-09-03 14:41:58 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-09-03 14:41:58 (GMT) |
commit | 1fc3bb437757d7107352304d7da13a719795b005 (patch) | |
tree | e0c75465de50744bb21dce3744ea2967e2b7d7a1 | |
parent | 231c9dad5af95ab248e46c78eafc4ab3cb985c6a (diff) | |
download | CMake-1fc3bb437757d7107352304d7da13a719795b005.zip CMake-1fc3bb437757d7107352304d7da13a719795b005.tar.gz CMake-1fc3bb437757d7107352304d7da13a719795b005.tar.bz2 |
BUG: use windows paths for utility depends
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 6bd0cb9..85a62d2 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -810,7 +810,8 @@ void cmUnixMakefileGenerator::OutputUtilityRule(std::ostream& fout, } std::string comment = "Rule to build Utility "; comment += name; - std::string depends; + std::string depends; + std::string replaceVars; const std::vector<cmCustomCommand> &ccs = t.GetCustomCommands(); for(std::vector<cmCustomCommand>::const_iterator i = ccs.begin(); i != ccs.end(); ++i) @@ -820,7 +821,9 @@ void cmUnixMakefileGenerator::OutputUtilityRule(std::ostream& fout, d != dep.end(); ++d) { depends += " \\\n"; - depends += *d; + replaceVars = *d; + m_Makefile->ExpandVariablesInString(replaceVars); + depends += this->ConvertToOutputPath(replaceVars.c_str()); } } this->OutputMakeRule(fout, |