summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/navit_macros.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/navit_macros.cmake b/cmake/navit_macros.cmake
index df3f45de2..4a8dd079d 100644
--- a/cmake/navit_macros.cmake
+++ b/cmake/navit_macros.cmake
@@ -49,6 +49,9 @@ macro(module_add_library MODULE_NAME )
if (ANDROID)
TARGET_LINK_LIBRARIES(${MODULE_NAME} ${NAVIT_LIBNAME})
endif()
+ if (APPLE)
+ set_target_properties( ${MODULE_NAME} PROPERTIES LINK_FLAGS "-Wl,-undefined -Wl,dynamic_lookup")
+ endif()
# workaround to be compatible with old paths
set_target_properties( ${MODULE_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.libs")