From 3820f0bc987d35d00d24ac32ed888662024f6b16 Mon Sep 17 00:00:00 2001 From: "Roscoe A. Bartlett" Date: Tue, 30 Jul 2024 14:45:58 -0400 Subject: [PATCH] Provide better error message for tribits_asesrt_minimum_cmake_version() The current error messages seemed to suggest that the TriBITS version was too low. But this is an error message about the version of CMake being too long. --- tribits/core/common/TribitsConstants.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tribits/core/common/TribitsConstants.cmake b/tribits/core/common/TribitsConstants.cmake index 8c5906c78..26af761c3 100644 --- a/tribits/core/common/TribitsConstants.cmake +++ b/tribits/core/common/TribitsConstants.cmake @@ -14,8 +14,9 @@ set(TRIBITS_CMAKE_MINIMUM_REQUIRED 3.23.0) macro(tribits_asesrt_minimum_cmake_version) if (CMAKE_VERSION VERSION_LESS ${TRIBITS_CMAKE_MINIMUM_REQUIRED}) - message(FATAL_ERROR "Error, TriBiTS must have version" - " ${TRIBITS_CMAKE_MINIMUM_REQUIRED} or higher!") + message(FATAL_ERROR "Error, this TriBITS project ${PROJECT_NAME} must have a" + " version of CMake ${TRIBITS_CMAKE_MINIMUM_REQUIRED} or higher but was" + " only provided CMake version ${CMAKE_VERSION}!" ) endif() endmacro()