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

@ -83,7 +83,9 @@ if (UNIX)
ADD_DEFINITIONS(${GTK3_CFLAGS_OTHER})
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
LINK_LIBRARIES("dl")
endif ()
endif (UNIX)
find_package(SDL2 REQUIRED)