summaryrefslogtreecommitdiff
path: root/Modules/ExternalProject
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-21 16:11:48 -0400
committerBrad King <brad.king@kitware.com>2022-06-21 18:26:22 -0400
commit7b622f3e806d6e655aab10de87dff7be201cd1c4 (patch)
tree48452a4de956cdea24b91e3192080b2e48058010 /Modules/ExternalProject
parent27874273061fa74d3bcc860769fb1eae42eba0fe (diff)
downloadcmake-7b622f3e806d6e655aab10de87dff7be201cd1c4.tar.gz
ExternalProject: Fix regression in stamp creation for Xcode+iOS
The change to `_ep_add_mkdir_command` in commit 5fbac2bb24 (ExternalProject: Move inline scripts to separate files, 2022-01-22, v3.23.0-rc1~101^2) did not account for the possibility that `CMAKE_CFG_INTDIR` is `$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)` instead of just the configuration name. Pass the value into the helper script on the command line so that the native buildsystem placeholders are evaluated. Fixes: #23645
Diffstat (limited to 'Modules/ExternalProject')
-rw-r--r--Modules/ExternalProject/mkdirs.cmake.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/ExternalProject/mkdirs.cmake.in b/Modules/ExternalProject/mkdirs.cmake.in
index d30a2e7b69..bb835cf4cb 100644
--- a/Modules/ExternalProject/mkdirs.cmake.in
+++ b/Modules/ExternalProject/mkdirs.cmake.in
@@ -17,3 +17,6 @@ set(configSubDirs @CMAKE_CONFIGURATION_TYPES@)
foreach(subDir IN LISTS configSubDirs)
file(MAKE_DIRECTORY "@stamp_dir@/${subDir}")
endforeach()
+if(cfgdir)
+ file(MAKE_DIRECTORY "@stamp_dir@${cfgdir}") # cfgdir has leading slash
+endif()