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
Günther Brammer 2013-03-10 14:00:01 +01:00
parent 43bbcecd99
commit 159cfb9885
1 changed files with 3 additions and 1 deletions

View File

@ -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()