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()