mirror of
https://github.com/reactos/CMake.git
synced 2025-01-31 08:52:21 +00: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:
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…
x
Reference in New Issue
Block a user