Skip to content

Commit

Permalink
Linker fix glad.
Browse files Browse the repository at this point in the history
  • Loading branch information
morganbengtsson committed Nov 15, 2018
1 parent 15c4dd4 commit e728eab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions externals/glad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ set(SOURCES
src/glad.c)

add_library(${PROJECT_NAME} STATIC ${HEADERS} ${SOURCES})
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_link_libraries(${PROJECT_NAME} PRIVATE dl)
endif()

0 comments on commit e728eab

Please sign in to comment.