summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-30 12:04:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-30 12:04:07 (GMT)
commit947a51871699dbd1e38ecee39a443129ed8df0a6 (patch)
tree38d55f9d6e1aaa7015dc0461f08178c10250c03a /Source/cmFileCommand.cxx
parentf67a787a387c5f8aaff7e319889b892875a72158 (diff)
parente5f5eeca2f632608cf4709cffef9d82f6f5be6f3 (diff)
downloadCMake-947a51871699dbd1e38ecee39a443129ed8df0a6.zip
CMake-947a51871699dbd1e38ecee39a443129ed8df0a6.tar.gz
CMake-947a51871699dbd1e38ecee39a443129ed8df0a6.tar.bz2
Merge topic 'file-CONFIGURE-subdir'
e5f5eeca2f file: Fix CONFIGURE output relative path Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4951
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 3eea6f3..cb0f05f 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -2862,7 +2862,8 @@ bool HandleConfigureCommand(std::vector<std::string> const& args,
// Check for generator expressions
const std::string input = args[4];
- std::string outputFile = args[2];
+ std::string outputFile = cmSystemTools::CollapseFullPath(
+ args[2], status.GetMakefile().GetCurrentBinaryDirectory());
std::string::size_type pos = input.find_first_of("<>");
if (pos != std::string::npos) {