Skip to content

Commit 889bb4f

Browse files
committed
CMAKE: fixed inclusion of BundleUtilities
1 parent c18c463 commit 889bb4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmake/applebundle.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include(BundleUtilities)
2+
fixup_bundle("${TARGET_BUNDLE_DIR}" "" "")

cmake/darwin.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
include(BundleUtilities)
2-
31
#set(CMAKE_OSX_ARCHITECTURES "i386;x86_64")
42

53
macro(cp_osx_get_directory_size DIR OUTVAR)
@@ -70,4 +68,5 @@ macro(cp_osx_add_target_properties TARGET APPNAME VERSION VERSION_CODE)
7068
cp_set_properties(${TARGET} MACOSX_BUNDLE_BUNDLE_NAME "${APPNAME}")
7169
#cp_set_properties(${TARGET} MACOSX_BUNDLE TRUE)
7270
cp_osx_generate_plist_file(${TARGET})
71+
add_custom_command(TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_COMMAND} -DTARGET_BUNDLE_DIR=$<TARGET_BUNDLE_DIR:${TARGET}> -P "${ROOT_DIR}/cmake/applebundle.cmake" VERBATIM)
7372
endmacro()

0 commit comments

Comments
 (0)