Browse Source

Fix crash-on-launch pre-macOS 10.12

Rodger Combs 6 years ago
parent
commit
b0c19010e1
1 changed files with 2 additions and 1 deletions
  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")