mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
Fix CTest test file generation for spaces in subdirectory names
Encode the subdirectory names properly for CMake syntax. Closes: #16299
This commit is contained in:
1 parent
385e6a274d
commit
1f8613e9ba
1 file changed
+1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user