diff --git a/dependencies/imgui/glad/CMakeLists.txt b/dependencies/imgui/glad/CMakeLists.txt index c652f470ca..5853b76990 100644 --- a/dependencies/imgui/glad/CMakeLists.txt +++ b/dependencies/imgui/glad/CMakeLists.txt @@ -31,6 +31,13 @@ add_custom_command( # Build add_library(glad SHARED ${GLAD_SOURCES}) +target_compile_definitions(glad + PUBLIC GLAD_GLAPI_EXPORT + PRIVATE GLAD_GLAPI_EXPORT_BUILD +) + +# Link +target_link_libraries(glad PRIVATE dl) # Headers setup_header_dirs(glad