This commit is contained in:
Guillaume Racicot 2025-01-19 07:30:35 +00:00 committed by GitHub
commit 43c015a4a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
include(CMakeFindDependencyMacro)
find_dependency(Threads)
include("${CMAKE_CURRENT_LIST_DIR}/glfw3Targets.cmake")
add_library(glfw3::glfw3 ALIAS glfw)

View File

@ -7,6 +7,8 @@ add_library(glfw ${GLFW_LIBRARY_TYPE}
egl_context.c osmesa_context.c null_platform.h null_joystick.h
null_init.c null_monitor.c null_window.c null_joystick.c)
add_library(glfw3::glfw3 ALIAS glfw)
# The time, thread and module code is shared between all backends on a given OS,
# including the null backend, which still needs those bits to be functional
if (APPLE)