From f9f44432bf807f3cbf75267bdca82502121622d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 4 Nov 2024 10:51:08 +0100 Subject: [PATCH] CMake: try to clarify that Git version match failure is not an error. The wording was so insufficient that it made people think it's a fatal error, and subsequently made them suspicious because it seemed like the fatal error is ignored. --- src/Magnum/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/CMakeLists.txt b/src/Magnum/CMakeLists.txt index 9eb3e2865..7a2fc8e2e 100644 --- a/src/Magnum/CMakeLists.txt +++ b/src/Magnum/CMakeLists.txt @@ -77,9 +77,9 @@ if(Git_FOUND) set(MAGNUM_VERSION_COMMIT " ${MAGNUM_VERSION_COMMIT}") set(MAGNUM_VERSION_HASH ${CMAKE_MATCH_4}) elseif(_MAGNUM_VERSION_RESULT EQUAL 0) - message(WARNING "Can't match Git version from ${MAGNUM_VERSION_STRING}") + message(WARNING "Can't match Git version from ${MAGNUM_VERSION_STRING}, generating a fallback version.h instead") else() - message(WARNING "Can't match Git version: ${_MAGNUM_VERSION_ERROR}") + message(WARNING "Can't match Git version, generating a fallback version.h instead: ${_MAGNUM_VERSION_ERROR}") endif() endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake