Skip to content

Commit

Permalink
Merge pull request #406 from MikaelSmith/static-pcp-client
Browse files Browse the repository at this point in the history
(maint) Enable builds with static cpp-pcp-client
  • Loading branch information
mruzicka committed Apr 29, 2016
2 parents 2850f0c + 1822b84 commit bbf693d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ set (LIBS
${LEATHERMAN_LIBRARIES}
)

if (WIN32)
# Necessary when statically linking cpp-pcp-client on Windows.
# Shouldn't hurt when cpp-pcp-client is a DLL.
list(APPEND LIBS Ws2_32)
endif()

if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "SunOS" OR CMAKE_SYSTEM_NAME MATCHES "AIX")
# On some platforms Boost.Thread has a dependency on clock_gettime. It also depends on pthread,
# and FindBoost in CMake 3.2.3 doesn't include that dependency.
Expand Down

0 comments on commit bbf693d

Please sign in to comment.