Make find_program(BASH) REQUIRED to prevent build-time errors

Signed-off-by: Osyotr <Osyotr@users.noreply.github.com>
This commit is contained in:
Osyotr 2024-03-17 21:12:58 +03:00
parent 9f0bf65f5f
commit f7850f1414

View file

@ -101,7 +101,7 @@ elseif(${PLATFORM_ANDROID})
)
else() # neither iPhone nor Android
# Find bash first, on Windows it can be either in Git or in WSL
find_program(BASH bash)
find_program(BASH bash REQUIRED)
# Generate version header file.
execute_process(COMMAND "${BASH}" tools/unix/version.sh qt_version
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}