389b3a131a
Like qt-configure-module.bat, when building with unity build, CMake needs to know the full path of the source directory to be able to correctly generate its `*_cxx.cxx` files. So far, this seems to only affect Windows' LLVM/MinGW builds. By this patch, I make sure that we pass the full path to CMake. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Ida2da127ecba95856b6e0091936c471c2a116936 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
22 lines
623 B
Batchfile
22 lines
623 B
Batchfile
@echo off
|
|
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
|
|
set script_dir_path=%~dp0
|
|
set script_dir_path=%script_dir_path:~0,-1%
|
|
|
|
rem add the drive letter to the source_dir_path,
|
|
rem by removing the path argument, expanding it, and adding it back
|
|
set source_dir_path=%~dpnx1
|
|
set args=%*
|
|
set args=%args:* =%
|
|
set args=%source_dir_path% %args%
|
|
|
|
set cmake_scripts_dir=%script_dir_path%
|
|
|
|
set relative_bin_dir=@relative_path_from_libexec_dir_to_bin_dir@
|
|
if NOT "%relative_bin_dir%" == "" (
|
|
set relative_bin_dir="%relative_bin_dir%"\
|
|
)
|
|
|
|
call "%script_dir_path%"\%relative_bin_dir%"qt-cmake.bat" ^
|
|
@script_passed_args@ %args%
|