From 79c9fa05bb47f8880b0be1479bbe746cb0526d7c Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Tue, 4 Oct 2016 13:34:20 +0300 Subject: [PATCH] Fix OSRM build on macOS --- 3party/osrm/osrm-backend/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3party/osrm/osrm-backend/CMakeLists.txt b/3party/osrm/osrm-backend/CMakeLists.txt index 314121f2d3..12bd55f2f8 100755 --- a/3party/osrm/osrm-backend/CMakeLists.txt +++ b/3party/osrm/osrm-backend/CMakeLists.txt @@ -237,6 +237,10 @@ set(OMIM_LIBRARIES "${OMIM_BUILD_PATH}/libbase.a" "${OMIM_BUILD_PATH}/libjansson.a" ) +if(APPLE) + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -dead_strip") +endif() + target_link_libraries(OSRM ${Boost_LIBRARIES}) target_link_libraries(osrm-extract ${Boost_LIBRARIES})