diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index 691c0bba97..53eb4b7ae1 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -331,10 +331,6 @@ add_library(3rdparty_glew INTERFACE) if(NOT MSVC) find_package(GLEW 1.13.0 REQUIRED) target_link_libraries(3rdparty_glew INTERFACE GLEW::GLEW) - - set(CMAKE_THREAD_PREFER_PTHREAD 1) - find_package(Threads REQUIRED) - target_link_libraries(3rdparty_glew INTERFACE Threads::Threads) endif() diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index d62316b869..8c42ed9232 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -68,6 +68,10 @@ if(UNIX) find_package(X11 REQUIRED) target_include_directories(rpcs3 PUBLIC ${X11_INCLUDE_DIR}) target_link_libraries(rpcs3 ${X11_LIBRARIES}) + + set(CMAKE_THREAD_PREFER_PTHREAD TRUE) + find_package(Threads REQUIRED) + target_link_libraries(rpcs3 Threads::Threads) endif() if(WIN32)