From 868abf7283aa91b930d0943a04f70e0a61e3a6c4 Mon Sep 17 00:00:00 2001 From: iZsh Date: Sun, 16 Aug 2015 13:50:20 +0200 Subject: fix compilation and linking on Mac OS X --- swig/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'swig') diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt index 7e9e888..22d7340 100644 --- a/swig/CMakeLists.txt +++ b/swig/CMakeLists.txt @@ -28,6 +28,12 @@ endif() include(GrSwig) include(GrPython) +IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + # Mac OS X specific code + # Without this flag it does not find some of the libraries + SET(CMAKE_MODULE_LINKER_FLAGS "-undefined dynamic_lookup") +ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + ######################################################################## # Setup swig generation ######################################################################## -- cgit v1.2.3