aboutsummaryrefslogtreecommitdiff
path: root/third-party/cmake/CopyFilesGlob.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/cmake/CopyFilesGlob.cmake')
-rw-r--r--third-party/cmake/CopyFilesGlob.cmake20
1 files changed, 0 insertions, 20 deletions
diff --git a/third-party/cmake/CopyFilesGlob.cmake b/third-party/cmake/CopyFilesGlob.cmake
deleted file mode 100644
index 8950ead1e5..0000000000
--- a/third-party/cmake/CopyFilesGlob.cmake
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copy multiple files to destination, based on a glob expression
-# - FROM_GLOB
-# - TO
-
-if(NOT FROM_GLOB)
- message(FATAL_ERROR "FROM_GLOB must be set")
-endif()
-if(NOT TO)
- message(FATAL_ERROR "TO must be set")
-endif()
-
-execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TO})
-
-file(GLOB files ${FROM_GLOB})
-foreach(file ${files})
- execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${file} ${TO} RESULT_VARIABLE rv)
- if(NOT rv EQUAL 0)
- message(FATAL_ERROR "Error copying ${file}")
- endif()
-endforeach()