aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2016-04-02 19:51:46 +0100
committerRui Abreu Ferreira <raf-ep@gmx.com>2016-08-07 21:57:28 +0100
commit04012349f6857a16985201add11d4277320f33fc (patch)
treed7a877b8fecc434e5d7ad140eb1ff90070995530
parentfaafd9b70c87e7af7f7ad9da000b41bbf1875734 (diff)
downloadrneovim-04012349f6857a16985201add11d4277320f33fc.tar.gz
rneovim-04012349f6857a16985201add11d4277320f33fc.tar.bz2
rneovim-04012349f6857a16985201add11d4277320f33fc.zip
third-party: Create path in CopyFilesGlob.cmake
-rw-r--r--third-party/cmake/CopyFilesGlob.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/third-party/cmake/CopyFilesGlob.cmake b/third-party/cmake/CopyFilesGlob.cmake
index 056da32fd4..8950ead1e5 100644
--- a/third-party/cmake/CopyFilesGlob.cmake
+++ b/third-party/cmake/CopyFilesGlob.cmake
@@ -9,6 +9,8 @@ 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)