- fixed Linux linking issue

libraries/zmusic/libzmusic.a(i_module.cpp.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
This commit is contained in:
alexey.lysiuk 2020-02-02 14:26:58 +02:00
parent 3a522091b9
commit 9a235bebb6

View file

@ -88,7 +88,7 @@ add_library( zmusic STATIC
zmusic/zmusic.cpp zmusic/zmusic.cpp
${PLAT_SOURCES} ${PLAT_SOURCES}
) )
target_link_libraries( zmusic dumb gme timidityplus) target_link_libraries( zmusic dumb gme timidityplus "${CMAKE_DL_LIBS}" )
if( NOT DYN_SNDFILE AND SNDFILE_FOUND ) if( NOT DYN_SNDFILE AND SNDFILE_FOUND )
include_directories( "${SNDFILE_INCLUDE_DIRS}" ) include_directories( "${SNDFILE_INCLUDE_DIRS}" )