Skip to content
Snippets Groups Projects
Commit 9ebeb813 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix SDL2 linkage for Darwin.

parent 5545aa59
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,7 @@ if(NOT WITHOUT_SDL)
if(SDL2_FOUND)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_compile_definitions(ciolib PUBLIC STATIC_SDL)
target_link_libraries(ciolib SDL2::SDL2)
endif()
target_include_directories(ciolib PUBLIC ${SDL2_INCLUDE_DIRS})
target_compile_definitions(ciolib PUBLIC WITH_SDL)
......
......@@ -221,7 +221,8 @@ endif()
if(NOT WITHOUT_SDL_AUDIO)
if(SDL2_FOUND)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_compile_definitions(ciolib PUBLIC STATIC_SDL)
target_compile_definitions(xpdev PUBLIC STATIC_SDL)
target_link_libraries(xpdev SDL2::SDL2})
endif()
target_include_directories(xpdev PUBLIC ${SDL2_INCLUDE_DIRS})
target_compile_definitions(xpdev PUBLIC WITH_SDL_AUDIO)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment