summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-06 19:56:39 -0300
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-06 19:56:39 -0300
commitf5a49df679ef4d2e0aca2115fb5790d5259aa922 (patch)
treef025bcffdc56eb503ad2a06c4e6229a0e070c0a3
parenta813f78551316b8bf20f7c1cc020980bb7c4fcb3 (diff)
parentd8311e836595e9370acdf5acc364f98994c49660 (diff)
Merge pull request #1117 from yuriks/fix-glad-build
CMake: Add missing library required by Linux for compiling glad
-rw-r--r--externals/glad/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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()