Skip to content

Commit

Permalink
Common/CMakeLists: Link in libraries privately for traversal_server
Browse files Browse the repository at this point in the history
Without this, CMake script errors can occur, as explicit linkage
specifiers and non-explicit specifier commands aren't compatible with
one another.
  • Loading branch information
lioncash committed Jun 8, 2018
1 parent 48b7cfa commit d1e2782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/CMakeLists.txt
Expand Up @@ -159,10 +159,10 @@ if(UNIX)
add_executable(traversal_server TraversalServer.cpp)
target_link_libraries(traversal_server PRIVATE common)
if(SYSTEMD_FOUND)
target_link_libraries(traversal_server ${SYSTEMD_LIBRARIES})
target_link_libraries(traversal_server PRIVATE ${SYSTEMD_LIBRARIES})
endif()
if(HAIKU)
target_link_libraries(traversal_server network)
target_link_libraries(traversal_server PRIVATE network)
endif()
elseif(WIN32)
target_link_libraries(common PRIVATE "-INCLUDE:enableCompatPatches")
Expand Down

0 comments on commit d1e2782

Please sign in to comment.