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