From df3205e873d4edf2f40c8f9e6d64d5e5aabaad16 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 7 Apr 2004 12:07:36 -0400 Subject: [PATCH] fix problem with custom command --- Source/cmLocalVisualStudio7Generator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 4b289b0c0..a4dc51a7f 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())