From 88bea338b1f452043f740119ba2ba6e11d0555ef Mon Sep 17 00:00:00 2001 From: Jaime Resano Date: Wed, 12 Feb 2025 12:40:34 +0100 Subject: [PATCH] Fix CMake configuration error, undefined target processtestapp target may be undefined, so `set_target_properties` may fail. This can be fixed by passing the properties to `add_qtc_executable` Change-Id: Ib1525224d7430d02e48e84e42d952d359b543674 Reviewed-by: Jarek Kobus Reviewed-by: Eike Ziller --- tests/auto/utils/process/processtestapp/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/auto/utils/process/processtestapp/CMakeLists.txt b/tests/auto/utils/process/processtestapp/CMakeLists.txt index 7372cda14a7..fe8fe8418c1 100644 --- a/tests/auto/utils/process/processtestapp/CMakeLists.txt +++ b/tests/auto/utils/process/processtestapp/CMakeLists.txt @@ -6,12 +6,10 @@ add_qtc_executable(processtestapp "PROCESS_TESTAPP=\"${CMAKE_CURRENT_BINARY_DIR}\"" DEPENDS Utils app_version SOURCES main.cpp processtestapp.h processtestapp.cpp + PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" SKIP_INSTALL INTERNAL_ONLY ) - -set_target_properties(processtestapp PROPERTIES - LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" - ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" -)