build: Move plist property setting

This commit is contained in:
WerWolv 2022-08-10 20:26:27 +02:00
parent 164cb1285b
commit 568b7f5139
1 changed files with 2 additions and 3 deletions

View File

@ -163,8 +163,6 @@ macro(configurePackingResources)
else () else ()
set ( bundle_path "${CMAKE_BINARY_DIR}/ImHex.app" ) set ( bundle_path "${CMAKE_BINARY_DIR}/ImHex.app" )
endif() endif()
set_property(TARGET main PROPERTY MACOSX_BUNDLE_INFO_PLIST ${MACOSX_BUNDLE_INFO_PLIST})
endif() endif()
endif() endif()
endmacro() endmacro()
@ -262,6 +260,7 @@ macro(createPackage)
set_target_properties(libimhex PROPERTIES SOVERSION ${IMHEX_VERSION}) set_target_properties(libimhex PROPERTIES SOVERSION ${IMHEX_VERSION})
set_property(TARGET main PROPERTY MACOSX_BUNDLE_INFO_PLIST ${MACOSX_BUNDLE_INFO_PLIST})
# Fix rpath # Fix rpath
add_custom_command(TARGET imhex_all POST_BUILD COMMAND ${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/" $<TARGET_FILE:main>) add_custom_command(TARGET imhex_all POST_BUILD COMMAND ${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/" $<TARGET_FILE:main>)