macosx: We need CoreFoudation for SDLMain

This commit is contained in:
Alam Ed Arias 2016-03-25 22:23:47 -04:00
parent 077781cc56
commit 0f853640e2
1 changed files with 2 additions and 0 deletions

View File

@ -118,7 +118,9 @@ if(${SDL2_FOUND})
set_target_properties(SRB2SDL2 PROPERTIES OUTPUT_NAME ${SRB2_SDL2_EXE_NAME})
if(${CMAKE_SYSTEM} MATCHES Darwin)
find_library(CORE_LIB CoreFoundation)
target_link_libraries(SRB2SDL2 PRIVATE
${CORE_LIB}
SDL2
SDL2_mixer
${GME_LIBRARIES}