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

View file

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