From d0c4656dbcea901650f5e46fb88af34075aaf8f6 Mon Sep 17 00:00:00 2001 From: Martin Filliung Date: Mon, 25 May 2026 13:03:21 +0900 Subject: [PATCH] fix: build fails if BUILD_SHARED_LIBS is set to ON when building bundled glfw --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6670a4b..5c8f895 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,9 @@ if(NOT GLFW) set(BUILD_STATIC ON CACHE BOOL "" FORCE) + set(BUILD_SHARED_LIBS + OFF + CACHE BOOL "" FORCE) add_subdirectory(ext/glfw EXCLUDE_FROM_ALL) else() message(STATUS "GLFW lib found at: " ${GLFW})