summaryrefslogtreecommitdiffstats
path: root/bin/qt-cmake.bat.in
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-07-03 16:40:01 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-07-03 16:09:55 +0000
commit38640f745e8079e8fc860aa5ff162035b31572c2 (patch)
tree0eee3eb7c4dcaaae6ad4491e435ed812ad0c7fa1 /bin/qt-cmake.bat.in
parentd9da52d5616fed6f1d48422d82f23ad3dae946a9 (diff)
Fix toolchain path when doing non-prefix builds
Previously the cmake install prefix was added twice during a non-prefix build, which evaluated to an incorrect path. Set another absolute dir variable, and use that instead. Change-Id: I73099510dadc8f401d5a763f21840c9671686c10 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'bin/qt-cmake.bat.in')
-rw-r--r--bin/qt-cmake.bat.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/qt-cmake.bat.in b/bin/qt-cmake.bat.in
index 3f33b4725b..a26e153068 100644
--- a/bin/qt-cmake.bat.in
+++ b/bin/qt-cmake.bat.in
@@ -1 +1 @@
-@CMAKE_COMMAND@ -DCMAKE_TOOLCHAIN_FILE=@CMAKE_INSTALL_PREFIX@/@__GlobalConfig_install_dir@/qt.toolchain.cmake %*
+@CMAKE_COMMAND@ -DCMAKE_TOOLCHAIN_FILE=@__GlobalConfig_install_dir_absolute@/qt.toolchain.cmake %*