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:
parent
385e6a274d
commit
1f8613e9ba
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue