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:
Cristian Adam
2020-10-20 15:40:56 +02:00
parent 2b5e1ea62e
commit a2aa02acba

View File

@@ -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()