We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f87e2f6 commit 0ceb990Copy full SHA for 0ceb990
cmake/sokol.cmake
@@ -4,7 +4,10 @@
4
5
if(BUILD_SOKOL)
6
7
-add_subdirectory(${THIRDPARTY_DIR}/glfw)
+if(NOT EMSCRIPTEN)
8
+ set(GLFW_BUILD_WAYLAND OFF)
9
+ add_subdirectory(${THIRDPARTY_DIR}/glfw)
10
+endif()
11
12
set(SOKOL_LIB_SRC ${CMAKE_SOURCE_DIR}/src/system/sokol/sokol.c)
13
@@ -31,10 +34,11 @@ if(APPLE)
31
34
"-framework MetalKit"
32
35
"-framework AudioToolbox"
33
36
"-framework GameController"
37
+ glfw
38
)
39
40
elseif(LINUX)
- target_link_libraries(sokol PRIVATE X11 GL Xi Xcursor m dl asound)
41
+ target_link_libraries(sokol PRIVATE X11 GL Xi Xcursor m dl asound glfw)
42
elseif(WIN32)
43
target_link_libraries(sokol PRIVATE D3D11 glfw)
44
endif()
0 commit comments