diff options
author | Sebastian Lipponer <mail@sebastianlipponer.de> | 2019-09-06 20:33:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-13 14:56:26 (GMT) |
commit | c16641607fcf85206b3faf67ae1e1bab173bf44d (patch) | |
tree | 4cfb9e7d393b393498a00d5a5f1d25aa2b27d789 /Source/cmCustomCommandGenerator.cxx | |
parent | 922482dd3acd2af9d26476134b3386c5a7695a03 (diff) | |
download | CMake-c16641607fcf85206b3faf67ae1e1bab173bf44d.zip CMake-c16641607fcf85206b3faf67ae1e1bab173bf44d.tar.gz CMake-c16641607fcf85206b3faf67ae1e1bab173bf44d.tar.bz2 |
add_custom_command: Delay slash conversion until after genex evaluation
Generator expressions may contain or produce backslashes.
Fixes: #19553
Diffstat (limited to 'Source/cmCustomCommandGenerator.cxx')
-rw-r--r-- | Source/cmCustomCommandGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCustomCommandGenerator.cxx b/Source/cmCustomCommandGenerator.cxx index 82cc037..6a4125b 100644 --- a/Source/cmCustomCommandGenerator.cxx +++ b/Source/cmCustomCommandGenerator.cxx @@ -58,6 +58,7 @@ cmCustomCommandGenerator::cmCustomCommandGenerator(cmCustomCommand const& cc, std::vector<std::string> result = cmExpandedList(cge->Evaluate(this->LG, this->Config)); for (std::string& it : result) { + cmSystemTools::ConvertToUnixSlashes(it); if (cmSystemTools::FileIsFullPath(it)) { it = cmSystemTools::CollapseFullPath(it); } |