From 314b80e8ac5c061cd05802b46c3dd315ebe9ca83 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 11 May 2017 06:11:38 +0200 Subject: [PATCH] Fix compilation in macOS --- src/algorithms/libs/rtklib/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/algorithms/libs/rtklib/CMakeLists.txt b/src/algorithms/libs/rtklib/CMakeLists.txt index a6764ed7c..4699762b3 100644 --- a/src/algorithms/libs/rtklib/CMakeLists.txt +++ b/src/algorithms/libs/rtklib/CMakeLists.txt @@ -48,6 +48,10 @@ add_library(rtklib_lib ${RTKLIB_LIB_SOURCES} ${RTKLIB_LIB_HEADERS}) source_group(Headers FILES ${RTKLIB_LIB_HEADERS}) add_dependencies(rtklib_lib glog-${glog_RELEASE}) +if(OS_IS_MACOSX) + set(MAC_LIBRARIES "-framework Accelerate") +endif(OS_IS_MACOSX) + target_link_libraries( rtklib_lib ${Boost_LIBRARIES} @@ -55,4 +59,5 @@ target_link_libraries( ${GLOG_LIBRARIES} ${BLAS} ${LAPACK} - ) + ${MAC_LIBRARIES} +)