]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: hide empty `MINGW64_VERSION` output for mingw32ce
authorViktor Szakats <commit@vsz.me>
Mon, 24 Feb 2025 16:24:33 +0000 (17:24 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 24 Feb 2025 20:00:31 +0000 (21:00 +0100)
Follow-up to e49797abc24b8e0ac652d7aa0ceec7d252f9a019 #16022
Follow-up to 2a292c39846107228201674d686be5b3ed96674d #15975
Cherry-picked from #16394

Closes #16455

CMakeLists.txt

index af0ce66650e3749603ee6ea8e593abc378aac7c4..256b5d6679f106e273850facb4ccb602471e7115 100644 (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()