forked from qt-creator/qt-creator
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:
@@ -4,6 +4,6 @@ add_qtc_executable(testsleep
|
||||
INTERNAL_ONLY
|
||||
)
|
||||
|
||||
set_target_properties(testsleep PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
extend_qtc_executable(testsleep
|
||||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
)
|
||||
|
Reference in New Issue
Block a user