From c58eb2d831865f7defad7fcb2aad8838fee7803f Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 5 Feb 2022 17:36:50 +0100 Subject: [PATCH] Work on removing pthreads references --- angelscript/projects/cmake/CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/angelscript/projects/cmake/CMakeLists.txt b/angelscript/projects/cmake/CMakeLists.txt index 2af37c5..0e598ae 100644 --- a/angelscript/projects/cmake/CMakeLists.txt +++ b/angelscript/projects/cmake/CMakeLists.txt @@ -167,16 +167,12 @@ if (LINK_STD_STATICALLY) message(STATUS "Linking std libraries statically") set(as_LINKS -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++) if (MSVC) - set(as_LINKS "${as_LINKS} -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive") + set(as_LINKS "${as_LINKS}") else() - set(as_LINKS "${as_LINKS} -Wl,-Bdynamic -lpthread") + set(as_LINKS "${as_LINKS}") endif(MSVC) message(STATUS "Angelscript LINKS ${as_LINKS}") target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} ${as_LINKS}) -else() - set(THREADS_PREFER_PTHREAD_FLAG ON) - find_package(Threads REQUIRED) - target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} -lpthread) endif() set_target_properties(${ANGELSCRIPT_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION})