summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-08-28 20:22:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-08-28 20:22:46 (GMT)
commitdd4e8df29a6f024890df32e9b223537ef204b102 (patch)
tree516be5f6d4f3146a903a7aa90db838c332f558d7 /Source/cmLocalVisualStudio7Generator.cxx
parent58243026126dc0bf2c2ba1921e56de6cc1f9f77d (diff)
downloadCMake-dd4e8df29a6f024890df32e9b223537ef204b102.zip
CMake-dd4e8df29a6f024890df32e9b223537ef204b102.tar.gz
CMake-dd4e8df29a6f024890df32e9b223537ef204b102.tar.bz2
BUG: make sure exe output path is used for dep hack stuff
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 773a22f..979e4d9 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -870,8 +870,20 @@ WriteCustomRule(std::ostream& fout,
std::string libPath = dep + "_CMAKE_PATH";
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());
if (cacheValue)
- {
- libPath = cacheValue;
+ {
+ std::string exePath = "";
+ if (m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH"))
+ {
+ exePath = m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH");
+ }
+ if(exePath.size())
+ {
+ libPath = exePath;
+ }
+ else
+ {
+ libPath = cacheValue;
+ }
libPath += "/";
libPath += "$(INTDIR)";
libPath += dep;