diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2016-10-04 13:34:20 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-10-04 13:35:56 +0300 |
commit | 79c9fa05bb47f8880b0be1479bbe746cb0526d7c (patch) | |
tree | d4d52782ed031f9a26ebf287ee1b0df845765c51 /3party | |
parent | fc814daaf9b1854e97237050f98a4e5cdc475073 (diff) |
Fix OSRM build on macOS
Diffstat (limited to '3party')
-rwxr-xr-x | 3party/osrm/osrm-backend/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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}) |