require mingw-w64 v3

This commit is contained in:
Viktor Szakats 2025-07-24 02:57:49 +02:00
parent 58b9c6134b
commit fec93d9536
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -246,6 +246,9 @@ if(WIN32)
string(REGEX REPLACE "MINGW64_VERSION=" "" MINGW64_VERSION "${CURL_TEST_OUTPUT}")
if(MINGW64_VERSION)
message(STATUS "Found MINGW64_VERSION=${MINGW64_VERSION}")
if(MINGW64_VERSION VERSION_LESS 3.0)
message(FATAL_ERROR "mingw-w64 3.0 or upper is required")
endif()
endif()
endif()
unset(MINGW64_VERSION CACHE) # Avoid storing in CMake cache