aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony J. Bentley <anthony@anjbe.name>2017-10-09 03:42:35 -0600
committerAnthony J. Bentley <anthony@anjbe.name>2017-10-09 03:42:35 -0600
commitc992177edabd604160458e255b07d7b23f3f1a85 (patch)
tree241518acb11cfcc523b2deec828a8410c261a6de
parentdf19b9340877b8e49cdc4728a62c64f5f93c811f (diff)
Only link against libdl on Linux.
-rw-r--r--CMakeLists.txt6
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)