From ae5ce52d1da49b4ca2500e18d1a9fbbd476a4024 Mon Sep 17 00:00:00 2001 From: Daniel Dada Date: Mon, 8 Dec 2025 23:15:05 +0300 Subject: [PATCH] fix: include windows.h directly to avoid missing arch on build --- CMakeLists.txt | 5 +++++ src/core/config/config.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7958c01..05fa599 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,11 @@ if(WIN32) GIT_REPOSITORY https://github.com/glfw/glfw.git GIT_TAG 3.3.10 ) + + set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) + set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) + set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) + FetchContent_MakeAvailable(glfw) else() diff --git a/src/core/config/config.cpp b/src/core/config/config.cpp index 0380413..d9733a1 100644 --- a/src/core/config/config.cpp +++ b/src/core/config/config.cpp @@ -6,7 +6,7 @@ #include #ifdef _WIN32 -#include "libloaderapi.h" +#include "windows.h" #endif namespace clrsync::core