diff --git a/CMakeLists.txt b/CMakeLists.txt index a247ec997..7b7fc7402 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,7 +290,7 @@ if(WITH_TOOLS OR BUILD_TOOLS) add_executable(osrm-io-benchmark Tools/io-benchmark.cpp $) target_link_libraries(osrm-io-benchmark ${Boost_LIBRARIES}) add_executable(osrm-unlock-all Tools/unlock_all_mutexes.cpp $) - target_link_libraries(osrm-unlock-all ${Boost_LIBRARIES}) + target_link_libraries(osrm-unlock-all ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) if(UNIX AND NOT APPLE) target_link_libraries(osrm-unlock-all rt) endif()