diff options
author | Anthony J. Bentley <anthony@anjbe.name> | 2017-10-09 03:42:35 -0600 |
---|---|---|
committer | Anthony J. Bentley <anthony@anjbe.name> | 2017-10-09 03:42:35 -0600 |
commit | c992177edabd604160458e255b07d7b23f3f1a85 (patch) | |
tree | 241518acb11cfcc523b2deec828a8410c261a6de | |
parent | df19b9340877b8e49cdc4728a62c64f5f93c811f (diff) |
Only link against libdl on Linux.
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2076d30..d824f6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |