From d8311e836595e9370acdf5acc364f98994c49660 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sun, 6 Sep 2015 19:34:15 -0300 Subject: [PATCH] CMake: Add missing library required by Linux for compiling glad --- externals/glad/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/externals/glad/CMakeLists.txt b/externals/glad/CMakeLists.txt index ebc5db1f2..a97d4aa73 100644 --- a/externals/glad/CMakeLists.txt +++ b/externals/glad/CMakeLists.txt @@ -9,3 +9,6 @@ set(HEADERS create_directory_groups(${SRCS} ${HEADERS}) add_library(glad STATIC ${SRCS} ${HEADERS}) target_include_directories(glad PUBLIC "include/") +if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") + target_link_libraries(glad dl) +endif()