summaryrefslogtreecommitdiff
path: root/Modules/ExternalProject/mkdirs.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/ExternalProject/mkdirs.cmake.in')
-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()