diff --git a/CMakeLists.txt b/CMakeLists.txt index 40c410aeb..c36084fb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,8 @@ project(QtBase LANGUAGES CXX C ASM ) +find_package(Threads REQUIRED) +set_property(TARGET Threads::Threads PROPERTY _qt_no_promote_global TRUE) # Make sure we only use latest private CMake API, aka no compatibility wrappers. set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE)