diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-22 21:59:21 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-22 21:59:21 (GMT) |
commit | 3c6d30e4abf415e19ba2b995ebe87c9e988ac554 (patch) | |
tree | 79eb905674980fc0a88ab8d8d4208745c427f086 | |
parent | 69806d705a8475a8cc43b50f9ec8177e643f3906 (diff) | |
download | CMake-3c6d30e4abf415e19ba2b995ebe87c9e988ac554.zip CMake-3c6d30e4abf415e19ba2b995ebe87c9e988ac554.tar.gz CMake-3c6d30e4abf415e19ba2b995ebe87c9e988ac554.tar.bz2 |
fix for paths with spaces and borland
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index a31fc2b..5c9d260 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -1433,6 +1433,10 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectoryWindows(std::ostream& fout if(target1) { std::string dir = cmSystemTools::ConvertToOutputPath(directory); + if(dir[0] == '\"') + { + dir = dir.substr(1, dir.size()-2); + } fout << "\tif not exist \"" << dir << "\\$(NULL)\"" << " " << "$(MAKE) $(MAKESILENT) rebuild_cache\n"; @@ -1823,7 +1827,10 @@ cmLocalUnixMakefileGenerator::ConvertToOutputForExisting(const char* p) // if there is one if(ret.find(' ') != std::string::npos) { - cmSystemTools::GetShortPath(ret.c_str(), ret); + if(!cmSystemTools::GetShortPath(ret.c_str(), ret)) + { + ret = p; + } } return ret; } |