diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-08-04 12:12:51 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-08-06 15:31:29 +0200 |
commit | 25a5eb31c4b509c379706cd1bc1d077d4e146b7e (patch) | |
tree | bfd20f749c0fce8255bd0f62c29087911873646c | |
parent | 447f4a2f80a8728e41a6f544339b51b3ab889f0a (diff) | |
download | qtwayland-25a5eb31c4b509c379706cd1bc1d077d4e146b7e.tar.gz |
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: I9403f210dddf0921c06d2dd4ac9507fb4659fd70
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r-- | tests/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ce2e2581..44ef5c3d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,12 @@ # Generated from tests.pro. -qt_find_package(Threads REQUIRED) # special case +# special case begin +# TODO: Prepare for removal, once Platform brings in Threads. +if(NOT TARGET Threads::Threads) + qt_find_package(Threads REQUIRED) +endif() +# special case end + if(QT_BUILD_STANDALONE_TESTS) # Add qt_find_package calls for extra dependencies that need to be found when building # the standalone tests here. |