1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

build/cmake: build everything with -pthread, not just GLEW

error: POSIX thread support was disabled in PCH file but is currently enabled
This commit is contained in:
Jan Beich 2018-09-21 19:57:18 +00:00 committed by Ivan
parent 1133fbb017
commit 1c8fc6852a
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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)