Only link against libdl on Linux.

This commit is contained in:
Anthony J. Bentley 2017-10-09 03:42:35 -06:00
parent df19b93408
commit c992177eda

View File

@ -82,8 +82,10 @@ if (UNIX)
LINK_LIBRARIES(${GTK3_LIBRARIES})
ADD_DEFINITIONS(${GTK3_CFLAGS_OTHER})
LINK_LIBRARIES("dl")
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
LINK_LIBRARIES("dl")
endif ()
endif (UNIX)
find_package(SDL2 REQUIRED)