diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-11-08 13:42:16 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-11-08 13:42:16 (GMT) |
commit | 32e9510d55dd28d3a3547c90a03e56a2ba390579 (patch) | |
tree | 257220a26e4af624f7da54899fb2763baaab4082 /Source | |
parent | 5187cb1df52d12d2f832bf0f5576df19f511c107 (diff) | |
download | CMake-32e9510d55dd28d3a3547c90a03e56a2ba390579.zip CMake-32e9510d55dd28d3a3547c90a03e56a2ba390579.tar.gz CMake-32e9510d55dd28d3a3547c90a03e56a2ba390579.tar.bz2 |
Needed to replace srcdir to make install targets work.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 48eccbc..5229f3f 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1241,7 +1241,7 @@ void cmUnixMakefileGenerator::OutputInstallRules(std::ostream& fout) } fout << *i << " " << prefix << l->second.GetInstallPath() << "; \\\n"; - fout << "\t elif [ -f $(srcdir)/" << *i << " ] ; then \\\n"; + fout << "\t elif [ -f $(CMAKE_CURRENT_SOURCE)/" << *i << " ] ; then \\\n"; // avoid using install-sh to install install-sh // does not work on windows.... if(*i == "install-sh") @@ -1252,7 +1252,7 @@ void cmUnixMakefileGenerator::OutputInstallRules(std::ostream& fout) { fout << "\t $(INSTALL_DATA) "; } - fout << "$(srcdir)/" << *i + fout << "$(CMAKE_CURRENT_SOURCE)/" << *i << " " << prefix << l->second.GetInstallPath() << "; \\\n"; fout << "\telse \\\n"; fout << "\t echo \" ERROR!!! Unable to find: " << *i @@ -1281,7 +1281,7 @@ void cmUnixMakefileGenerator::OutputInstallRules(std::ostream& fout) } fout << *i << " " << prefix << l->second.GetInstallPath() << "; \\\n"; - fout << "\t elif [ -f $(srcdir)/" << *i << " ] ; then \\\n"; + fout << "\t elif [ -f $(CMAKE_CURRENT_SOURCE)/" << *i << " ] ; then \\\n"; // avoid using install-sh to install install-sh // does not work on windows.... if(*i == "install-sh") @@ -1292,7 +1292,7 @@ void cmUnixMakefileGenerator::OutputInstallRules(std::ostream& fout) { fout << "\t $(INSTALL_PROGRAM) "; } - fout << "$(srcdir)/" << *i + fout << "$(CMAKE_CURRENT_SOURCE)/" << *i << " " << prefix << l->second.GetInstallPath() << "; \\\n"; fout << "\telse \\\n"; fout << "\t echo \" ERROR!!! Unable to find: " << *i |