diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-10-20 15:40:56 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2020-10-20 14:12:38 +0000 |
commit | a2aa02acbabdfbcfb358293703b6226e517d31ea (patch) | |
tree | dead684c6f650e92c8c2a76ea72ac31980e1eeef | |
parent | 2b5e1ea62ec084fc4706e2aa8db0ba819b74c4c2 (diff) |
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>
-rw-r--r-- | tests/auto/extensionsystem/pluginspec/testplugin/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/extensionsystem/pluginspec/testplugin/CMakeLists.txt b/tests/auto/extensionsystem/pluginspec/testplugin/CMakeLists.txt index 391c90862f..d52f1c98d0 100644 --- a/tests/auto/extensionsystem/pluginspec/testplugin/CMakeLists.txt +++ b/tests/auto/extensionsystem/pluginspec/testplugin/CMakeLists.txt @@ -22,4 +22,6 @@ add_qtc_plugin(testplugin ) # The empty string gets removed if I put it above -set_target_properties(testplugin PROPERTIES PREFIX "") +if (TARGET testplugin) + set_target_properties(testplugin PROPERTIES PREFIX "") +endif() |