forked from qt-creator/qt-creator
CMake Build: Make sure testplugin target exists before setting property
When doing a minimal build, the testplugin might not be created. Change-Id: Ia4f1cbd14cbdad6e81cb7090a7f52aad692175fa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -22,4 +22,6 @@ add_qtc_plugin(testplugin
|
||||
)
|
||||
|
||||
# The empty string gets removed if I put it above
|
||||
if (TARGET testplugin)
|
||||
set_target_properties(testplugin PROPERTIES PREFIX "")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user