diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-08-28 20:06:06 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-08-28 20:06:06 (GMT) |
commit | 2b2a9d73da58786d31a6b7a6636260803782cb79 (patch) | |
tree | a2856bc674921ffd21792f26a722a70d592c490f /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 62fec9b38639aba74a0aefe0906ac6c7e0efa59d (diff) | |
download | CMake-2b2a9d73da58786d31a6b7a6636260803782cb79.zip CMake-2b2a9d73da58786d31a6b7a6636260803782cb79.tar.gz CMake-2b2a9d73da58786d31a6b7a6636260803782cb79.tar.bz2 |
fix to executable depends for custom commands
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 8379ec5..df67224 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -465,10 +465,20 @@ void cmLocalVisualStudio6Generator::WriteCustomRule(std::ostream& fout, } std::string libPath = dep + "_CMAKE_PATH"; const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str()); - if (!cacheValue) + if (cacheValue) { - fout << "\\\n\t" << - cmSystemTools::ConvertToOutputPath(d->c_str()); + libPath = cacheValue; + libPath += "/"; + libPath += "$(INTDIR)"; + libPath += dep; + libPath += ".exe"; + fout << cmSystemTools::ConvertToOutputPath(libPath.c_str()) + << ";"; + } + else + { + fout << cmSystemTools::ConvertToOutputPath(d->c_str()) + << ";"; } } fout << "\n"; |