From 20269b8c3d3f834da0da4937bb8acc35f03c9b5a Mon Sep 17 00:00:00 2001 From: prasad-sawantdesai Date: Mon, 8 Dec 2025 15:55:14 +0100 Subject: [PATCH 1/2] Fix CMake lookup by using find_package(PThreads4W CONFIG REQUIRED) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35d3197e..7be9f9d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,7 @@ endif() # ############################################################################## if(WIN32) - find_package(PThreads4W REQUIRED) + find_package(PThreads4W CONFIG REQUIRED) find_package(dlfcn-win32 CONFIG REQUIRED) endif() From 22d63ca9be7de640f98c395768faf4654a388730 Mon Sep 17 00:00:00 2001 From: prasad-sawantdesai Date: Tue, 9 Dec 2025 11:26:04 +0100 Subject: [PATCH 2/2] fix pthreads issue --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7be9f9d4..b5a7726b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,7 @@ endif() # ############################################################################## if(WIN32) - find_package(PThreads4W CONFIG REQUIRED) + find_package(pthreads CONFIG REQUIRED) find_package(dlfcn-win32 CONFIG REQUIRED) endif() @@ -123,7 +123,7 @@ target_compile_definitions(al PRIVATE -DASCII) if(NOT WIN32) target_link_libraries(al PRIVATE dl) else() - target_link_libraries(al PRIVATE dlfcn-win32::dl PThreads4W::PThreads4W ws2_32) + target_link_libraries(al PRIVATE dlfcn-win32::dl PThreads_windows::PThreads_windows ws2_32) endif() add_subdirectory(src)