Fix CMakeLists.txt of Style Plugin Example (broken on macOS)

Add TARGET instruction in property setter, used in debug mode on macOS.

Task-number: QTBUG-107842
Task-number: QTBUG-109227
Change-Id: I8704b7009c36ea8ddbf8773abfaf2b5f34f728ac
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 2ae75c2e6a49e84aa10691520752e340a4855b79)
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
This commit is contained in:
Axel Spoerl 2023-01-19 08:53:19 +01:00 committed by Joerg Bornemann
parent 0c7ee0c759
commit 78d6f6f57d

View File

@ -10,7 +10,7 @@ qt_add_plugin(simplestyleplugin
#! [0] #! [0]
if(QT_FEATURE_debug AND APPLE) if(QT_FEATURE_debug AND APPLE)
set_property(simplestyleplugin set_property(TARGET simplestyleplugin
APPEND_STRING PROPERTY OUTPUT_NAME "_debug") APPEND_STRING PROPERTY OUTPUT_NAME "_debug")
endif() endif()