diff options
author | Stefano Soffia <stefano.soffia.it@gmail.com> | 2016-09-12 21:01:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-13 17:58:46 (GMT) |
commit | 1f8613e9bab142a839ec3c4dafd1aff1ba7487c7 (patch) | |
tree | 15aec7bcc90321bd41bb17b1e45eda9a8efb5265 /Source/cmLocalGenerator.cxx | |
parent | 385e6a274da286befb38a0d540845383f393b79f (diff) | |
download | CMake-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.cxx | 1 |
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; } } |