From bbb35e000f2298ab5d3fc14d52a550ed80cd6b05 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Tue, 4 Aug 2020 12:28:26 +0200 Subject: 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 --- src/plugins/pinyin/3rdparty/pinyin/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3