cmake: hide empty MINGW64_VERSION output for mingw32ce

Follow-up to e49797abc2 #16022
Follow-up to 2a292c3984 #15975
Cherry-picked from #16394

Closes #16455
This commit is contained in:
Viktor Szakats 2025-02-24 17:24:33 +01:00
parent 9b0467b169
commit 7b8b9b9c2b
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -264,7 +264,9 @@ if(WIN32)
if(MINGW64_VERSION)
string(REGEX MATCH "MINGW64_VERSION=[0-9]+\.[0-9]+" CURL_TEST_OUTPUT "${CURL_TEST_OUTPUT}")
string(REGEX REPLACE "MINGW64_VERSION=" "" MINGW64_VERSION "${CURL_TEST_OUTPUT}")
message(STATUS "Found MINGW64_VERSION=${MINGW64_VERSION}")
if(MINGW64_VERSION)
message(STATUS "Found MINGW64_VERSION=${MINGW64_VERSION}")
endif()
endif()
unset(MINGW64_VERSION CACHE) # Avoid storing in CMake cache
endif()