diff options
author | Ken Martin <ken.martin@kitware.com> | 2004-04-07 16:07:36 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2004-04-07 16:07:36 (GMT) |
commit | df3205e873d4edf2f40c8f9e6d64d5e5aabaad16 (patch) | |
tree | 1aa62e0a0080ff640fd05980e41cd8b7020cfa67 | |
parent | 1616135d4e6afca5502fa72ffb064f8d31acd8a4 (diff) | |
download | CMake-df3205e873d4edf2f40c8f9e6d64d5e5aabaad16.zip CMake-df3205e873d4edf2f40c8f9e6d64d5e5aabaad16.tar.gz CMake-df3205e873d4edf2f40c8f9e6d64d5e5aabaad16.tar.bz2 |
fix problem with custom command
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 4b289b0..a4dc51a 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -979,6 +979,7 @@ WriteCustomRule(std::ostream& fout, { dep = cmSystemTools::GetFilenameWithoutLastExtension(dep); } + // check to see if the dependency is another target built by cmake std::string libPath = dep + "_CMAKE_PATH"; const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str()); if (cacheValue && *cacheValue) @@ -997,7 +998,7 @@ WriteCustomRule(std::ostream& fout, libPath = cacheValue; } libPath += "/"; - libPath += "$(INTDIR)"; + libPath += "$(INTDIR)/"; libPath += dep; libPath += ".exe"; fout << this->ConvertToXMLOutputPath(libPath.c_str()) |