From f45758e845fd8ebedaeccfae5020def2c079b4d3 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 3 Apr 2020 01:52:54 +0100 Subject: [PATCH] Add missing dependencies --- DoConfig/CMakeLists.txt | 3 +++ external/glad/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/DoConfig/CMakeLists.txt b/DoConfig/CMakeLists.txt index 3edd211f..b7636f48 100644 --- a/DoConfig/CMakeLists.txt +++ b/DoConfig/CMakeLists.txt @@ -76,6 +76,9 @@ endif() target_link_libraries(DoConfig PRIVATE glad) +find_package(OpenGL REQUIRED) +target_link_libraries(DoConfig PRIVATE OpenGL::GL ${CMAKE_DL_LIBS}) + # GLFW3 if(NOT FORCE_LOCAL_LIBS) diff --git a/external/glad/CMakeLists.txt b/external/glad/CMakeLists.txt index 2b6298c1..56b8523e 100644 --- a/external/glad/CMakeLists.txt +++ b/external/glad/CMakeLists.txt @@ -9,3 +9,4 @@ add_library(glad ) target_include_directories(glad PUBLIC "include") +target_link_libraries(glad PRIVATE ${CMAKE_DL_LIBS})