forked from qt-creator/qt-creator
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 <jaroslaw.kobus@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Jaime Resano
parent
be7b5eb679
commit
88bea338b1
@@ -6,12 +6,10 @@ add_qtc_executable(processtestapp
|
|||||||
"PROCESS_TESTAPP=\"${CMAKE_CURRENT_BINARY_DIR}\""
|
"PROCESS_TESTAPP=\"${CMAKE_CURRENT_BINARY_DIR}\""
|
||||||
DEPENDS Utils app_version
|
DEPENDS Utils app_version
|
||||||
SOURCES main.cpp processtestapp.h processtestapp.cpp
|
SOURCES main.cpp processtestapp.h processtestapp.cpp
|
||||||
SKIP_INSTALL
|
PROPERTIES
|
||||||
INTERNAL_ONLY
|
|
||||||
)
|
|
||||||
|
|
||||||
set_target_properties(processtestapp PROPERTIES
|
|
||||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
|
SKIP_INSTALL
|
||||||
|
INTERNAL_ONLY
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user