Skip to content

Commit

Permalink
Provide better error message for tribits_asesrt_minimum_cmake_version()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bartlettroscoe authored Jul 30, 2024
1 parent d8a2fb0 commit 3820f0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tribits/core/common/TribitsConstants.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3820f0b

Please sign in to comment.