summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStefano Soffia <stefano.soffia.it@gmail.com>2016-09-12 21:01:50 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-13 17:58:46 (GMT)
commit1f8613e9bab142a839ec3c4dafd1aff1ba7487c7 (patch)
tree15aec7bcc90321bd41bb17b1e45eda9a8efb5265 /Source/cmLocalGenerator.cxx
parent385e6a274da286befb38a0d540845383f393b79f (diff)
downloadCMake-1f8613e9bab142a839ec3c4dafd1aff1ba7487c7.zip
CMake-1f8613e9bab142a839ec3c4dafd1aff1ba7487c7.tar.gz
CMake-1f8613e9bab142a839ec3c4dafd1aff1ba7487c7.tar.bz2
Fix CTest test file generation for spaces in subdirectory names
Encode the subdirectory names properly for CMake syntax. Closes: #16299
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index abe0c23..a76bed3 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -181,6 +181,7 @@ void cmLocalGenerator::GenerateTestFiles()
// TODO: Use add_subdirectory instead?
std::string outP = i->GetDirectory().GetCurrentBinary();
outP = this->ConvertToRelativePath(outP, START_OUTPUT);
+ outP = cmOutputConverter::EscapeForCMake(outP);
fout << "subdirs(" << outP << ")" << std::endl;
}
}