fix? build-docker

This commit is contained in:
Agel committed 2026-05-23 20:24:05 +02:00
1 parent bfc50a67b8
commit e3766c8e55
3 files changed
+9

No files matched your search

+5
View File
@@ -5,6 +5,11 @@ set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
# Default sysroot for cross-compiled deps; overridden per-project via -DCMAKE_FIND_ROOT_PATH.
# Must be non-empty for ONLY mode to work — without it CMake silently falls back to host paths
# (e.g. /usr/include), which causes the MinGW compiler to pull in Linux glibc headers.
set(CMAKE_FIND_ROOT_PATH /opt/mingw-sysroot /usr/x86_64-w64-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)