CMake fixes for Windows

Signed-off-by: Osyotr <Osyotr@users.noreply.github.com>
This commit is contained in:
Osyotr
2025-08-07 01:55:57 +03:00
committed by Konstantin Pastbin
parent 416b8ab95a
commit 4117cca562
7 changed files with 37 additions and 16 deletions

View File

@@ -94,7 +94,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 REQUIRED)
find_program(BASH bash REQUIRED HINTS "$ENV{ProgramFiles}/Git/bin")
# Generate version header file.
execute_process(COMMAND "${BASH}" tools/unix/version.sh qt_version
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}