Răsfoiți Sursa

fix problem with custom command

Ken Martin 21 ani în urmă
părinte
comite
df3205e873
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      Source/cmLocalVisualStudio7Generator.cxx

+ 2 - 1
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())