macosx: let fix linking to SDL frameworks

This commit is contained in:
Alam Ed Arias 2016-03-25 22:07:34 -04:00
parent 9bc6ce3d85
commit 2c4a27c7c6
2 changed files with 4 additions and 4 deletions

View file

@ -118,10 +118,10 @@ if(${SDL2_FOUND})
set_target_properties(SRB2SDL2 PROPERTIES OUTPUT_NAME ${SRB2_SDL2_EXE_NAME})
if(${CMAKE_SYSTEM} MATCHES Darwin)
add_framework(CoreFoundation SRB2SDL2)
add_framework(SDL2 SRB2SDL2)
add_framework(SDL2_mixer SRB2SDL2)
target_link_libraries(SRB2SDL2 PRIVATE
CoreFoundation
SDL2
SDL2_mixer
${GME_LIBRARIES}
${PNG_LIBRARIES}
${ZLIB_LIBRARIES}