summaryrefslogtreecommitdiffstats
path: root/bin/qt-cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/qt-cmake.in')
-rwxr-xr-xbin/qt-cmake.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/qt-cmake.in b/bin/qt-cmake.in
index 363c490960c..5203e49f878 100755
--- a/bin/qt-cmake.in
+++ b/bin/qt-cmake.in
@@ -16,4 +16,7 @@ toolchain_path="$script_dir_path/@__GlobalConfig_relative_path_from_bin_dir_to_c
@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@ "$@"
+CMAKE_TOOLCHAIN_FILE="$toolchain_path"
+export CMAKE_TOOLCHAIN_FILE
+
+exec "$cmake_path" @__qt_cmake_extra@ "$@"