diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-08-04 12:28:26 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-08-06 18:14:09 +0200 |
commit | bbb35e000f2298ab5d3fc14d52a550ed80cd6b05 (patch) | |
tree | fffea94b17dd1f489a1889adec79037b94d7d369 | |
parent | e409ba186bcd670e7741740c410a32f35b1dbe2e (diff) |
CMake: Prepare for removal of Threads::Threads special cases
The Threads::Threads target will automatically be propagated via the
Qt6::Platform target.
Task-number: QTBUG-85877
Change-Id: I4ae57d9914c815a4222f1b6a2710f4219fbd504e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r-- | src/plugins/pinyin/3rdparty/pinyin/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/pinyin/3rdparty/pinyin/CMakeLists.txt b/src/plugins/pinyin/3rdparty/pinyin/CMakeLists.txt index 1bd98c0e..de6e38bb 100644 --- a/src/plugins/pinyin/3rdparty/pinyin/CMakeLists.txt +++ b/src/plugins/pinyin/3rdparty/pinyin/CMakeLists.txt @@ -4,7 +4,12 @@ ## BundledPinyin Generic Library: ##################################################################### -find_package(Threads REQUIRED) # special case +# special case begin +# TODO: Prepare for removal, once Platform brings in Threads. +if(NOT TARGET Threads::Threads) + find_package(Threads REQUIRED) +endif() +# special case end qt_add_3rdparty_library(BundledPinyin STATIC |