diff options
| author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-08-04 16:19:10 +0200 |
|---|---|---|
| committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-08-04 16:19:10 +0200 |
| commit | 50e53eaed903e9a7b5e69eb7825a75073b44cfe9 (patch) | |
| tree | dd2e5252c47f240d7d5b8f53c1070e3b18c253eb /Modules/UseSWIG | |
| parent | 5becf28f9230eb70e4181b4aa669297781e7f6b1 (diff) | |
| download | cmake-50e53eaed903e9a7b5e69eb7825a75073b44cfe9.tar.gz | |
UseSWIG: Take care of support files in sub-directories
Fixes: #20833
Diffstat (limited to 'Modules/UseSWIG')
| -rw-r--r-- | Modules/UseSWIG/ManageSupportFiles.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/UseSWIG/ManageSupportFiles.cmake b/Modules/UseSWIG/ManageSupportFiles.cmake index 4a03900b7f..6618fd5122 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 |
