summaryrefslogtreecommitdiffstats
path: root/bin/qt-cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/qt-cmake.in')
-rwxr-xr-xbin/qt-cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/qt-cmake.in b/bin/qt-cmake.in
index f719257f60..363c490960 100755
--- a/bin/qt-cmake.in
+++ b/bin/qt-cmake.in
@@ -2,7 +2,7 @@
# The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
script_dir_path=`dirname $0`
-script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
+script_dir_path=`(cd "$script_dir_path"; pwd)`
# Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.
original_cmake_path="@CMAKE_COMMAND@"
@@ -13,5 +13,7 @@ fi
toolchain_path="$script_dir_path/@__GlobalConfig_relative_path_from_bin_dir_to_cmake_config_dir@/qt.toolchain.cmake"
+@extra_qt_cmake_code@
+
# Find the qt toolchain relative to the absolute bin dir path where the script is located.
exec "$cmake_path" -DCMAKE_TOOLCHAIN_FILE="$toolchain_path" @__qt_cmake_extra@ "$@"