From 0f64c88510efb32bb0e531401672cf97eb51ddfb Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 28 May 2021 13:35:00 +0200 Subject: [PATCH] CMake build: Fix running tst_sdktool from different directory It would only run exactly from the Qt Creator build directory. Change-Id: Ifd105bdaab7405f93b6fb6084a85014fc4023b2f Reviewed-by: Cristian Adam --- tests/auto/sdktool/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/sdktool/CMakeLists.txt b/tests/auto/sdktool/CMakeLists.txt index 65d83c00e3b..4ee183ad3d4 100644 --- a/tests/auto/sdktool/CMakeLists.txt +++ b/tests/auto/sdktool/CMakeLists.txt @@ -1,5 +1,6 @@ +qtc_output_binary_dir(_output_binary_dir) add_qtc_test(tst_sdktool DEPENDS Utils - DEFINES SDKTOOL_DIR="${IDE_LIBEXEC_PATH}" + DEFINES SDKTOOL_DIR="${_output_binary_dir}/${IDE_LIBEXEC_PATH}" SOURCES tst_sdktool.cpp )