Skip to content

Commit

Permalink
Merge pull request #613 from TriBITSPub/612-improve-tribits-version-e…
Browse files Browse the repository at this point in the history
…rror

Provide better error message for tribits_asesrt_minimum_cmake_version() (#612)
  • Loading branch information
bartlettroscoe authored Jul 30, 2024
2 parents d8a2fb0 + 3820f0b commit f6ca2a9
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 f6ca2a9

Please sign in to comment.