[cmake-commits] king committed cmLocalVisualStudio7Generator.cxx 1.180 1.181

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Mar 14 14:35:12 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv16149

Modified Files:
	cmLocalVisualStudio7Generator.cxx 
Log Message:
BUG: When the current output directory is a link directory we need to reference it with the relative path "." instead of an empty relative path.


Index: cmLocalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -d -r1.180 -r1.181
--- cmLocalVisualStudio7Generator.cxx	14 Mar 2007 13:34:31 -0000	1.180
+++ cmLocalVisualStudio7Generator.cxx	14 Mar 2007 19:35:10 -0000	1.181
@@ -963,6 +963,10 @@
     if(cmSystemTools::FileIsFullPath(dir.c_str()))
       {
       std::string rel = this->Convert(dir.c_str(), START_OUTPUT, UNCHANGED);
+      if(rel.empty())
+        {
+        rel = ".";
+        }
       if(rel.size() < dir.size())
         {
         dir = rel;



More information about the Cmake-commits mailing list