forked from Mirrors/openclonk
cmake: Explicitly instead of indirectly link openclonk with pthread
In practice, other libraries pulled pthread in, except for the USE_CONSOLE build. But since there are direct calls to pthread in our code, we really shouldn't rely on that. Also, this should fix the USE_CONSOLE build on windows.scancodes-fix
parent
43bbcecd99
commit
159cfb9885
|
@ -1147,6 +1147,9 @@ target_link_libraries(c4script
|
|||
libmisc
|
||||
)
|
||||
if(HAVE_PTHREAD)
|
||||
target_link_libraries(openclonk
|
||||
pthread
|
||||
)
|
||||
target_link_libraries(netpuncher
|
||||
pthread
|
||||
)
|
||||
|
@ -1161,7 +1164,6 @@ if(HAVE_PTHREAD)
|
|||
endif()
|
||||
if(USE_CONSOLE)
|
||||
target_link_libraries(openclonk
|
||||
pthread
|
||||
${READLINE_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue