set SOKOL_GLCORE on linux

This commit is contained in:
Nic Barker 2025-04-09 11:27:17 +12:00
parent 74f183eef1
commit aed1f2f30d

View File

@ -40,6 +40,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
else()
add_library(sokol STATIC sokol.c ${sokol_HEADERS})
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
target_compile_definitions(sokol PRIVATE SOKOL_GLCORE=1)
target_link_libraries(sokol INTERFACE X11 Xi Xcursor GL dl m)
endif()
endif()