Skip to content

Commit 7b000ec

Browse files
authored
Merge pull request #78 from Magisus/boost-link
(maint) Fix linking errors when building with Leatherman locale
2 parents e5465cf + b71ac50 commit 7b000ec

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ add_definitions(-DLEATHERMAN_I18N)
3333
include(leatherman)
3434

3535
# Add other dependencies
36-
find_package(Boost 1.54 REQUIRED COMPONENTS thread date_time chrono system program_options)
36+
find_package(Boost 1.54 REQUIRED COMPONENTS locale thread date_time chrono system program_options)
3737

3838
# pthreads if you require the Boost.Thread component.
3939
find_package(Threads)

lib/tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ target_link_libraries(lib${PROJECT_NAME}_test
3030
${CMAKE_THREAD_LIBS_INIT}
3131
)
3232

33+
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND BOOST_STATIC)
34+
target_link_libraries(lib${PROJECT_NAME}_test iconv)
35+
endif()
36+
3337
add_test(NAME "unit_tests" COMMAND lib${PROJECT_NAME}_test)
3438

3539
configure_file (

0 commit comments

Comments
 (0)