Skip to content

Commit

Permalink
Link playsound with SDL, etc if statically linking SDL_sound.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 15, 2018
1 parent 57717d7 commit 484cd01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -163,6 +163,10 @@ if(SDLSOUND_BUILD_TEST)
add_executable(playsound_simple playsound/playsound_simple.c)
target_link_libraries(playsound_simple ${SDLSOUND_LIB_TARGET} ${OTHER_LDFLAGS})
#set(SDLSOUND_INSTALL_TARGETS ${SDLSOUND_INSTALL_TARGETS} ";playsound_simple")
if(NOT SDLSOUND_BUILD_SHARED)
target_link_libraries(playsound ${SDL2_LIBRARIES} ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
target_link_libraries(playsound_simple ${SDL2_LIBRARIES} ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
endif()
endif()

install(TARGETS ${SDLSOUND_INSTALL_TARGETS}
Expand Down

0 comments on commit 484cd01

Please sign in to comment.