summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-06 14:53:28 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-08-06 14:53:36 (GMT)
commitfdcb7483d11030fe597208843437ad6cce71ff50 (patch)
tree104cd36ae823b5f6c50e9ae875fd4cffe2acc224 /Modules
parent5c56aaa2848fe674e7fcdc255d72b2ea9f088d48 (diff)
parent50e53eaed903e9a7b5e69eb7825a75073b44cfe9 (diff)
downloadCMake-fdcb7483d11030fe597208843437ad6cce71ff50.zip
CMake-fdcb7483d11030fe597208843437ad6cce71ff50.tar.gz
CMake-fdcb7483d11030fe597208843437ad6cce71ff50.tar.bz2
Merge topic 'UseSWIG-support-files-in-subdirectories'
50e53eaed9 UseSWIG: Take care of support files in sub-directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5097
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