Skip to content

Commit

Permalink
(maint) Add rt dependency for Boost.Thread
Browse files Browse the repository at this point in the history
On some Linux and Solaris versions, rt must be explicitly linked as a
dependency for libboost_thread. Add it to dependencies in Logging, the
only library that uses Boost.Thread.
  • Loading branch information
Michael Smith committed Aug 4, 2015
1 parent c481abd commit f27bd06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ add_leatherman_includes("${Boost_INCLUDE_DIRS}")
leatherman_dependency(nowide)
leatherman_dependency(locale)

if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "SunOS")
add_leatherman_deps(rt)
endif()

if (BUILDING_LEATHERMAN)
leatherman_logging_namespace("leatherman.logging")
leatherman_logging_line_numbers()
Expand Down

0 comments on commit f27bd06

Please sign in to comment.