CMake, macOS: create bundle directory explicitly.

Before this commit, this worked fine with the Unix Makefiles
generator, but not with the Xcode generator.
This commit is contained in:
whitequark 2017-07-23 03:52:40 +00:00
parent 32120ea2dc
commit 49c64f7f15

View File

@ -378,6 +378,7 @@ if(APPLE)
set(bundle_bin ${EXECUTABLE_OUTPUT_PATH}/${bundle}.app/Contents/MacOS)
add_custom_command(TARGET solvespace POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${bundle_bin}
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:solvespace-cli> ${bundle_bin}
COMMENT "Bundling executable solvespace-cli"
VERBATIM)