summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomCommandCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-19 19:20:53 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-11 13:24:21 (GMT)
commitc257c25419c68e755b0f8289d8d563437bf9e0c2 (patch)
tree20418dcf8153ad50a55a4f7a4c0bc14cdb9de22f /Source/cmAddCustomCommandCommand.cxx
parentf36af9228b2ad36442f0cce9e8c8533fadef65aa (diff)
downloadCMake-c257c25419c68e755b0f8289d8d563437bf9e0c2.zip
CMake-c257c25419c68e755b0f8289d8d563437bf9e0c2.tar.gz
CMake-c257c25419c68e755b0f8289d8d563437bf9e0c2.tar.bz2
add_custom_{command,target}: Add genex support to OUTPUT and BYPRODUCTS
Move rejection of `#`, `<`, and `>` characters in outputs and byproducts to a generate-time check. This removes the front-end check that disallowed generator expressions. The generators have already been updated to handle them. Fixes: #12877
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r--Source/cmAddCustomCommandCommand.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx
index 8194226..ccd7255 100644
--- a/Source/cmAddCustomCommandCommand.cxx
+++ b/Source/cmAddCustomCommandCommand.cxx
@@ -5,7 +5,6 @@
#include <sstream>
#include <unordered_set>
-#include "cmCheckCustomOutputs.h"
#include "cmCustomCommand.h"
#include "cmCustomCommandLines.h"
#include "cmCustomCommandTypes.h"
@@ -298,13 +297,6 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args,
return false;
}
- // Make sure the output names and locations are safe.
- if (!cmCheckCustomOutputs(output, "OUTPUT", status) ||
- !cmCheckCustomOutputs(outputs, "OUTPUTS", status) ||
- !cmCheckCustomOutputs(byproducts, "BYPRODUCTS", status)) {
- return false;
- }
-
// Check for an append request.
if (append) {
mf.AppendCustomCommandToOutput(output[0], depends, implicit_depends,