Merge pull request #7095 from lioncash/cmake

Common/CMakeLists: Link in libraries privately for traversal_server
This commit is contained in:
Léo Lam 2018-06-09 07:54:04 +02:00 committed by GitHub
commit bbc2253949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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")