From 64c5a94800a868c749aa21f911707450205839b8 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Wed, 30 Sep 2020 19:09:10 +0200 Subject: [PATCH] Revert "Link pthreads when linking statically." This reverts commit 2c7082a7 --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d004496..750e86c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})