mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 17:32:33 +02:00
use seperate_arguments to allow cmake path escape
This commit is contained in:
parent
b14110f596
commit
1a0a4d0e20
1 changed files with 2 additions and 1 deletions
|
@ -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=$<TARGET_FILE:${TARGET_NAME}>
|
||||
-DLIB_PATHS="${LIB_PATHS}"
|
||||
-DLIB_PATHS=${LIB_PATHS_ARG}
|
||||
-P ${HIFI_CMAKE_DIR}/scripts/FixupBundlePostBuild.cmake
|
||||
)
|
||||
endif ()
|
||||
|
|
Loading…
Reference in a new issue