Revert "Link pthreads when linking statically."
continuous-integration/drone/push Build is passing Details

This reverts commit 2c7082a7
This commit is contained in:
Deukhoofd 2020-09-30 19:09:10 +02:00
parent b1d9add9a7
commit 64c5a94800
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 4 deletions

View File

@ -21,9 +21,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_link_options(-fuse-ld=lld)
endif ()
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
if (WINDOWS)
SET(CMAKE_SYSTEM_NAME Windows)
ADD_DEFINITIONS(-D WINDOWS=1)
@ -130,7 +127,7 @@ endif ()
if (STATICC)
message(STATUS "Linking C library statically")
SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread)
SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++)
endif()
target_link_libraries(pkmnLib PUBLIC ${_LINKS})