summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-08-04 14:19:10 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-08-04 14:19:10 (GMT)
commit50e53eaed903e9a7b5e69eb7825a75073b44cfe9 (patch)
treedd2e5252c47f240d7d5b8f53c1070e3b18c253eb /Modules
parent5becf28f9230eb70e4181b4aa669297781e7f6b1 (diff)
downloadCMake-50e53eaed903e9a7b5e69eb7825a75073b44cfe9.zip
CMake-50e53eaed903e9a7b5e69eb7825a75073b44cfe9.tar.gz
CMake-50e53eaed903e9a7b5e69eb7825a75073b44cfe9.tar.bz2
UseSWIG: Take care of support files in sub-directories
Fixes: #20833
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG/ManageSupportFiles.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/UseSWIG/ManageSupportFiles.cmake b/Modules/UseSWIG/ManageSupportFiles.cmake
index 4a03900..6618fd5 100644
--- a/Modules/UseSWIG/ManageSupportFiles.cmake
+++ b/Modules/UseSWIG/ManageSupportFiles.cmake
@@ -4,7 +4,7 @@
if (ACTION STREQUAL "CLEAN")
# Collect current list of generated files
- file (GLOB files LIST_DIRECTORIES FALSE RELATIVE "${SUPPORT_FILES_WORKING_DIRECTORY}" "${SUPPORT_FILES_WORKING_DIRECTORY}/*")
+ file (GLOB_RECURSE files LIST_DIRECTORIES TRUE RELATIVE "${SUPPORT_FILES_WORKING_DIRECTORY}" "${SUPPORT_FILES_WORKING_DIRECTORY}/*")
if (files)
# clean-up the output directory
@@ -22,7 +22,7 @@ endif()
if (ACTION STREQUAL "COPY")
# Collect current list of generated files
- file (GLOB files LIST_DIRECTORIES FALSE "${SUPPORT_FILES_WORKING_DIRECTORY}/*")
+ file (GLOB files LIST_DIRECTORIES TRUE "${SUPPORT_FILES_WORKING_DIRECTORY}/*")
if (files)
# copy files to the output directory