deps-glad: Only link to libdl on Linux
Only link to libdl when on Linux. FreeBSD for example has this built into their libc.
This commit is contained in:
parent
4497ab31c2
commit
42a9a0af3e
7
deps/glad/CMakeLists.txt
vendored
7
deps/glad/CMakeLists.txt
vendored
@ -43,8 +43,13 @@ endif()
|
||||
|
||||
if(NOT WIN32 AND NOT APPLE)
|
||||
set(glad_PLATFORM_DEPS
|
||||
-ldl
|
||||
${X11_X11_LIB})
|
||||
# only link to libdl on linux
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set(glad_PLATFORM_DEPS
|
||||
${glad_PLATFORM_DEPS}
|
||||
-ldl)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(glad
|
||||
|
Loading…
x
Reference in New Issue
Block a user