diff options
author | Brad King <brad.king@kitware.com> | 2018-11-02 16:46:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-03 12:39:45 (GMT) |
commit | 98d59417b0c6ac3ea85e315133337030dad93496 (patch) | |
tree | 74ec336a6debe5e073be6443cb1fed4ac7c2939b /Source/cmAddCustomCommandCommand.cxx | |
parent | 44cc305ac12d58fe476f815b89f42288455e44a9 (diff) | |
download | CMake-98d59417b0c6ac3ea85e315133337030dad93496.zip CMake-98d59417b0c6ac3ea85e315133337030dad93496.tar.gz CMake-98d59417b0c6ac3ea85e315133337030dad93496.tar.bz2 |
add_custom_{command,target}: Fix WORKING_DIRECTORY leading genex
Since commit v3.13.0-rc1~39^2 (add_custom_{command,target}:
WORKING_DIRECTORY generator expressions, 2018-09-22) the
`WORKING_DIRECTORY` option accepts generator expressions.
Fix support for the case of a leading generator expression
by deferring conversion to an absolute path until after
evaluation of the generator expression.
Fixes: #18543
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r-- | Source/cmAddCustomCommandCommand.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx index 91ccdf7..53f5593 100644 --- a/Source/cmAddCustomCommandCommand.cxx +++ b/Source/cmAddCustomCommandCommand.cxx @@ -318,12 +318,6 @@ bool cmAddCustomCommandCommand::InitialPass( return false; } - // Convert working directory to a full path. - if (!working.empty()) { - const std::string& build_dir = this->Makefile->GetCurrentBinaryDirectory(); - working = cmSystemTools::CollapseFullPath(working, build_dir); - } - // Choose which mode of the command to use. bool escapeOldStyle = !verbatim; if (source.empty() && output.empty()) { |