diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2020-10-15 13:37:39 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2020-10-15 13:42:21 (GMT) |
commit | 06a9a3bdc3cde5f4bf766771815e95d8e5a8aa62 (patch) | |
tree | 189bd23208e0130860a1cee6a4f49fadb1a732f9 /Source | |
parent | 85c2bb724f22b01e1b2f96b68ff73971c1638fbf (diff) | |
download | CMake-06a9a3bdc3cde5f4bf766771815e95d8e5a8aa62.zip CMake-06a9a3bdc3cde5f4bf766771815e95d8e5a8aa62.tar.gz CMake-06a9a3bdc3cde5f4bf766771815e95d8e5a8aa62.tar.bz2 |
file(CONFIGURE): Allow angle brackets in content
Fixes: #21306
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFileCommand.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index be91846..8a3aad2 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -2945,15 +2945,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], |