Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/3party
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2016-10-04 13:34:20 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-10-04 13:35:56 +0300
commit79c9fa05bb47f8880b0be1479bbe746cb0526d7c (patch)
treed4d52782ed031f9a26ebf287ee1b0df845765c51 /3party
parentfc814daaf9b1854e97237050f98a4e5cdc475073 (diff)
Fix OSRM build on macOS
Diffstat (limited to '3party')
-rwxr-xr-x3party/osrm/osrm-backend/CMakeLists.txt4
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})