From 1a0a4d0e208b8705dd1167063807dac68c4587e8 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 17 Feb 2015 16:05:32 -0800 Subject: [PATCH] use seperate_arguments to allow cmake path escape --- cmake/macros/CopyDllsBesideWindowsExecutable.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/macros/CopyDllsBesideWindowsExecutable.cmake b/cmake/macros/CopyDllsBesideWindowsExecutable.cmake index d6a8147ed4..2d42e3eff4 100644 --- a/cmake/macros/CopyDllsBesideWindowsExecutable.cmake +++ b/cmake/macros/CopyDllsBesideWindowsExecutable.cmake @@ -11,13 +11,14 @@ macro(COPY_DLLS_BESIDE_WINDOWS_EXECUTABLE) if (WIN32 AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") + seperate_arguments(LIB_PATHS_ARG WINDOWS_COMMAND ${LIB_PATHS}) # add a post-build command to copy DLLs beside the interface executable add_custom_command( TARGET ${TARGET_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -DBUNDLE_EXECUTABLE=$ - -DLIB_PATHS="${LIB_PATHS}" + -DLIB_PATHS=${LIB_PATHS_ARG} -P ${HIFI_CMAKE_DIR}/scripts/FixupBundlePostBuild.cmake ) endif ()