Quellcode durchsuchen

Fix crash-on-launch pre-macOS 10.12

Rodger Combs vor 6 Jahren
Ursprung
Commit
b0c19010e1
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      CMakeModules/AppleConfiguration.cmake

+ 2 - 1
CMakeModules/AppleConfiguration.cmake

@@ -6,7 +6,8 @@ find_Library(CARBON Carbon)
 find_library(SECURITY Security)
 find_library(MEDIAPLAYER MediaPlayer)
 
-set(OS_LIBS ${FOUNDATION} ${APPKIT} ${IOKIT} ${COCOA} ${SECURITY} ${CARBON} ${MEDIAPLAYER} spmediakeytap hidremote plistparser letsmove)
+set(OS_LIBS ${FOUNDATION} ${APPKIT} ${IOKIT} ${COCOA} ${SECURITY} ${CARBON} spmediakeytap hidremote plistparser letsmove)
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -weak_framework MediaPlayer")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.9 -fno-omit-frame-pointer")
 set(WARNINGS "-Wall")