From 04012349f6857a16985201add11d4277320f33fc Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Sat, 2 Apr 2016 19:51:46 +0100 Subject: [PATCH] third-party: Create path in CopyFilesGlob.cmake --- third-party/cmake/CopyFilesGlob.cmake | 2 ++ 1 file changed, 2 insertions(+) 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)