mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix platform-specific client libraries for Linux
Do not hardcode library names, detect and depend on them properly instead.
This commit is contained in:
parent
8c85d0d2a7
commit
e404d6fd63
|
@ -443,7 +443,10 @@ elseif(TARGET_OS STREQUAL "mac")
|
|||
set(PLATFORM_LIBS ${CARBON} ${SECURITY})
|
||||
else()
|
||||
set(PLATFORM_CLIENT)
|
||||
set(PLATFORM_CLIENT_LIBS GL GLU X11)
|
||||
find_package(OpenGL)
|
||||
find_package(X11)
|
||||
set(PLATFORM_CLIENT_LIBS ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${X11_X11_LIB})
|
||||
set(PLATFORM_CLIENT_INCLUDE_DIRS ${OPENGL_INCLUDE_DIR} ${X11_X11_INCLUDE_PATH})
|
||||
if(TARGET_OS STREQUAL "linux")
|
||||
set(PLATFORM_LIBS rt) # clock_gettime for glibc < 2.17
|
||||
else()
|
||||
|
|
Loading…
Reference in a new issue