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

This reverts commit 2c7082a7
This commit is contained in:
Deukhoofd committed 2020-09-30 19:09:10 +02:00
1 parent b1d9add9a7
commit 64c5a94800
1 file changed
+1 -4
+1 -4
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})