mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
Merge topic 'file-configure-angle-brackets'
06a9a3bdc3 file(CONFIGURE): Allow angle brackets in content
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5379
This commit is contained in:
@@ -2989,15 +2989,7 @@ bool HandleConfigureCommand(std::vector<std::string> const& args,
|
||||
std::string outputFile = cmSystemTools::CollapseFullPath(
|
||||
args[2], status.GetMakefile().GetCurrentBinaryDirectory());
|
||||
|
||||
std::string::size_type pos = input.find_first_of("<>");
|
||||
if (pos != std::string::npos) {
|
||||
status.SetError(cmStrCat("CONFIGURE called with CONTENT containing a \"",
|
||||
input[pos],
|
||||
"\". This character is not allowed."));
|
||||
return false;
|
||||
}
|
||||
|
||||
pos = outputFile.find_first_of("<>");
|
||||
std::string::size_type pos = outputFile.find_first_of("<>");
|
||||
if (pos != std::string::npos) {
|
||||
status.SetError(cmStrCat("CONFIGURE called with OUTPUT containing a \"",
|
||||
outputFile[pos],
|
||||
|
||||
Reference in New Issue
Block a user