From: Viktor Szakats Date: Mon, 24 Feb 2025 16:24:33 +0000 (+0100) Subject: cmake: hide empty `MINGW64_VERSION` output for mingw32ce X-Git-Tag: curl-8_13_0~367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b8b9b9c2bf84456e30a15c5060edf526b756a44;p=thirdparty%2Fcurl.git cmake: hide empty `MINGW64_VERSION` output for mingw32ce Follow-up to e49797abc24b8e0ac652d7aa0ceec7d252f9a019 #16022 Follow-up to 2a292c39846107228201674d686be5b3ed96674d #15975 Cherry-picked from #16394 Closes #16455 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index af0ce66650..256b5d6679 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()