Improve error messages

This commit is contained in:
Geert Janssens 2024-06-04 09:26:00 +02:00
parent e1b3c9ef06
commit 3f8b97bb2e

View File

@ -134,7 +134,7 @@ else()
if (BASH)
set(SHELL ${BASH})
else()
message(SEND_ERROR "Can't find a suitable bash executable. Please set GNC_SHELL.")
message(SEND_ERROR "Can't find a suitable bash executable. Please install bash or set GNC_SHELL.")
endif()
endif()
@ -152,7 +152,7 @@ if (GNC_VCS_INFO_RESULT EQUAL 0)
# if building from VCS, we need git
find_package(Git)
if (NOT GIT_FOUND)
message(SEND_ERROR "Looks like we're building from version control, but can't find git executable. Please set GIT_EXECUTABLE.")
message(SEND_ERROR "Looks like we're building from version control, but can't find git executable. Please install git or set GIT_EXECUTABLE.")
endif()
set(VCS_INFO_BASE_DIR ${CMAKE_BINARY_DIR})
else()