From 5cc541ea7c6af1e2e5a9dc48455094dcaac84aeb Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 5 Sep 2015 03:11:55 +0100 Subject: [PATCH] cmake: Add missing -ldl for glad. Fixes compilation failure introduced in a1a5570e9735cb3ead0149b26d00eb4d6ade744f. --- externals/glad/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/externals/glad/CMakeLists.txt b/externals/glad/CMakeLists.txt index ebc5db1f2..7f9bbd9d6 100644 --- a/externals/glad/CMakeLists.txt +++ b/externals/glad/CMakeLists.txt @@ -9,3 +9,7 @@ set(HEADERS create_directory_groups(${SRCS} ${HEADERS}) add_library(glad STATIC ${SRCS} ${HEADERS}) target_include_directories(glad PUBLIC "include/") + +if (UNIX AND NOT APPLE) + target_link_libraries(glad dl) +endif()