diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-03 16:40:01 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-03 16:09:55 +0000 |
commit | 38640f745e8079e8fc860aa5ff162035b31572c2 (patch) | |
tree | 0eee3eb7c4dcaaae6ad4491e435ed812ad0c7fa1 /bin | |
parent | d9da52d5616fed6f1d48422d82f23ad3dae946a9 (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')
-rw-r--r-- | bin/qt-cmake.bat.in | 2 | ||||
-rwxr-xr-x | bin/qt-cmake.in | 2 |
2 files changed, 2 insertions, 2 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 %* diff --git a/bin/qt-cmake.in b/bin/qt-cmake.in index efc8a850be..1797d2ded5 100755 --- a/bin/qt-cmake.in +++ b/bin/qt-cmake.in @@ -1,3 +1,3 @@ #!/bin/sh -exec @CMAKE_COMMAND@ -DCMAKE_TOOLCHAIN_FILE=@CMAKE_INSTALL_PREFIX@/@__GlobalConfig_install_dir@/qt.toolchain.cmake $* +exec @CMAKE_COMMAND@ -DCMAKE_TOOLCHAIN_FILE=@__GlobalConfig_install_dir_absolute@/qt.toolchain.cmake $* |