forked from Mirrors/openclonk
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
parent
7d186516a8
commit
ff57c03295
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue