Testsleep: Fix CMake configuration error when test is disabled

If the user has a minimal configuration and the test is not enabled the
call to set_target_properties will fail because the target does not
exist.

Change-Id: I084c53e8d78d92547c1592edc0a19f48d4e76327
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Cristian Adam
2023-12-06 14:09:04 +01:00
parent a4a27b8931
commit 6caf0f0d59

View File

@@ -4,6 +4,6 @@ add_qtc_executable(testsleep
INTERNAL_ONLY INTERNAL_ONLY
) )
set_target_properties(testsleep PROPERTIES extend_qtc_executable(testsleep
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
) )