Fix Mac build
This commit is contained in:
@@ -231,9 +231,6 @@ if (APPLE AND CMAKE_MACOSX_BUNDLE)
|
|||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qt.conf"
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qt.conf"
|
||||||
DESTINATION "${INSTALL_CMAKE_DIR}")
|
DESTINATION "${INSTALL_CMAKE_DIR}")
|
||||||
|
|
||||||
# Note Mac specific extension .app
|
|
||||||
set(APPS "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/86Box.app")
|
|
||||||
|
|
||||||
# Directories to look for dependencies
|
# Directories to look for dependencies
|
||||||
set(DIRS "${CMAKE_BINARY_DIR}")
|
set(DIRS "${CMAKE_BINARY_DIR}")
|
||||||
|
|
||||||
@@ -255,7 +252,8 @@ if (APPLE AND CMAKE_MACOSX_BUNDLE)
|
|||||||
|
|
||||||
install(CODE "
|
install(CODE "
|
||||||
include(BundleUtilities)
|
include(BundleUtilities)
|
||||||
fixup_bundle(\"${APPS}\" \"${QT_PLUGINS}\" \"${DIRS}\")")
|
get_filename_component(CMAKE_INSTALL_PREFIX_ABSOLUTE \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX} ABSOLUTE)
|
||||||
|
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/86Box.app\" \"${QT_PLUGINS}\" \"${DIRS}\")")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (UNIX AND NOT APPLE)
|
if (UNIX AND NOT APPLE)
|
||||||
|
Reference in New Issue
Block a user