From 3633699328b2a08a3d7117c6482ee648f1742e6b Mon Sep 17 00:00:00 2001 From: crueter Date: Sun, 2 Nov 2025 01:07:44 -0400 Subject: [PATCH] fix mingw sys version Signed-off-by: crueter --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b13789e9df..e8d62dee71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,12 @@ endif() list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") +# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/11112 +# This works totally fine on MinGW64, but not CLANG{,ARM}64 +if(MINGW AND CXX_CLANG) + set(CMAKE_SYSTEM_VERSION 10.0.0) +endif() + # NB: this does not account for SPARC # If you get Eden working on SPARC, please shoot crueter@crueter.xyz multiple emails # and you will be hailed for eternity