Common/CMakeLists: Link in libraries privately for traversal_server

Without this, CMake script errors can occur, as explicit linkage
specifiers and non-explicit specifier commands aren't compatible with
one another.
This commit is contained in:
Lioncash 2018-06-08 17:40:42 -04:00
parent 48b7cfa75c
commit d1e278218e

View File

@ -159,10 +159,10 @@ if(UNIX)
add_executable(traversal_server TraversalServer.cpp) add_executable(traversal_server TraversalServer.cpp)
target_link_libraries(traversal_server PRIVATE common) target_link_libraries(traversal_server PRIVATE common)
if(SYSTEMD_FOUND) if(SYSTEMD_FOUND)
target_link_libraries(traversal_server ${SYSTEMD_LIBRARIES}) target_link_libraries(traversal_server PRIVATE ${SYSTEMD_LIBRARIES})
endif() endif()
if(HAIKU) if(HAIKU)
target_link_libraries(traversal_server network) target_link_libraries(traversal_server PRIVATE network)
endif() endif()
elseif(WIN32) elseif(WIN32)
target_link_libraries(common PRIVATE "-INCLUDE:enableCompatPatches") target_link_libraries(common PRIVATE "-INCLUDE:enableCompatPatches")