mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00

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
23 lines
558 B
CMake
23 lines
558 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
file(MAKE_DIRECTORY
|
|
"@source_dir@"
|
|
"@binary_dir@"
|
|
"@install_dir@"
|
|
"@tmp_dir@"
|
|
"@stamp_dir@"
|
|
"@download_dir@"
|
|
"@log_dir@"
|
|
)
|
|
|
|
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()
|