summaryrefslogtreecommitdiffstats
path: root/bin/qt-cmake.bat.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/qt-cmake.bat.in')
-rw-r--r--bin/qt-cmake.bat.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/qt-cmake.bat.in b/bin/qt-cmake.bat.in
index 5d831ebce93..934f79c2599 100644
--- a/bin/qt-cmake.bat.in
+++ b/bin/qt-cmake.bat.in
@@ -7,5 +7,5 @@ set script_dir_path=%~dp0
set cmake_path=@CMAKE_COMMAND@
if not exist "%cmake_path%" set cmake_path=cmake
-set toolchain_path=%script_dir_path%\@__GlobalConfig_relative_path_from_bin_dir_to_cmake_config_dir@\qt.toolchain.cmake
-"%cmake_path%" -DCMAKE_TOOLCHAIN_FILE="%toolchain_path%" @__qt_cmake_extra@ %*
+set CMAKE_TOOLCHAIN_FILE=%script_dir_path%\@__GlobalConfig_relative_path_from_bin_dir_to_cmake_config_dir@\qt.toolchain.cmake
+"%cmake_path%" @__qt_cmake_extra@ %*