Skip to content
Snippets Groups Projects
Commit 32d85259 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use the detected thread library, don't -pthread anything.

parent 4f411157
No related branches found
No related tags found
No related merge requests found
Pipeline #6791 passed
...@@ -167,8 +167,6 @@ if(WIN32) ...@@ -167,8 +167,6 @@ if(WIN32)
if(NOT WITHOUT_GDI) if(NOT WITHOUT_GDI)
target_compile_definitions(ciolib PUBLIC WITH_GDI) target_compile_definitions(ciolib PUBLIC WITH_GDI)
endif() endif()
else()
target_link_libraries(ciolib pthread)
endif() endif()
if(USE_CURSES_ANYWAY) if(USE_CURSES_ANYWAY)
...@@ -199,4 +197,5 @@ endif() ...@@ -199,4 +197,5 @@ endif()
if(HAVE_VASPRINTF) if(HAVE_VASPRINTF)
target_compile_definitions(ciolib PRIVATE HAVE_VASPRINTF) target_compile_definitions(ciolib PRIVATE HAVE_VASPRINTF)
endif() endif()
target_link_libraries(ciolib ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(ciolib hash encode xpdev) target_link_libraries(ciolib hash encode xpdev)
# the name of the target operating system # the name of the target operating system
set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_VERSION 10)
# Add search path # Add search path
list(APPEND CMAKE_PROGRAM_PATH /home/admin/mingw-w32/bin) list(APPEND CMAKE_PROGRAM_PATH /home/admin/mingw-w32/bin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment