CMake: Move pthread, rt deps to libmisc

libmisc is the support library that references thread code and timing.
So the dependencies on pthread and rt should be attached to libmisc
instead of every single binary.
shapetextures
Nicolas Hake 2015-12-13 14:34:02 +01:00
parent 7d186516a8
commit ff57c03295
1 changed files with 2 additions and 19 deletions

View File

@ -1087,20 +1087,9 @@ target_link_libraries(c4script
libmisc
)
if(HAVE_PTHREAD)
target_link_libraries(openclonk
target_link_libraries(libmisc
pthread
)
target_link_libraries(netpuncher
pthread
)
target_link_libraries(c4script
pthread
)
if(TARGET mape)
target_link_libraries(mape
pthread
)
endif()
endif()
if(USE_CONSOLE)
target_link_libraries(openclonk
@ -1108,13 +1097,7 @@ if(USE_CONSOLE)
)
endif()
if(UNIX AND NOT APPLE)
target_link_libraries(c4group rt)
target_link_libraries(c4script rt)
target_link_libraries(netpuncher rt)
target_link_libraries(openclonk rt)
if(TARGET mape)
target_link_libraries(mape rt)
endif()
target_link_libraries(libmisc rt)
endif()
if (GLEW_FOUND)
set_property(TARGET openclonk APPEND PROPERTY COMPILE_DEFINITIONS ${GLEW_DEFINITIONS})