DolphinPostprocessBundle: Separate "-D" from DOLPHIN_BUNDLE_PATH definition
For whatever reason, the previous way would inject backslashes into any path that has spaces.
This commit is contained in:
parent
b0ca5f2666
commit
4fa78be3ad
|
@ -14,7 +14,7 @@ if(CMAKE_GENERATOR)
|
|||
set(_DOLPHIN_POSTPROCESS_BUNDLE_MODULE_LOCATION "${CMAKE_CURRENT_LIST_FILE}")
|
||||
function(dolphin_postprocess_bundle target)
|
||||
add_custom_command(TARGET ${target} POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -DDOLPHIN_BUNDLE_PATH="$<TARGET_BUNDLE_DIR:${target}>"
|
||||
COMMAND ${CMAKE_COMMAND} "-D" "DOLPHIN_BUNDLE_PATH=$<TARGET_BUNDLE_DIR:${target}>"
|
||||
-P "${_DOLPHIN_POSTPROCESS_BUNDLE_MODULE_LOCATION}"
|
||||
)
|
||||
endfunction()
|
||||
|
|
Loading…
Reference in New Issue