Skip to content

Commit

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

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

0 comments on commit 4fd03a2

Please sign in to comment.