Fix OSRM build on macOS

This commit is contained in:
Sergey Yershov 2016-10-04 13:34:20 +03:00
parent fc814daaf9
commit 79c9fa05bb

View file

@ -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})