diff options
author | iZsh <izsh@fail0verflow.com> | 2015-08-16 13:50:20 +0200 |
---|---|---|
committer | iZsh <izsh@fail0verflow.com> | 2015-08-16 13:50:20 +0200 |
commit | 868abf7283aa91b930d0943a04f70e0a61e3a6c4 (patch) | |
tree | 4f35fa8bb3505c682825f35018dfa1d73e1fbcaf /swig | |
parent | 0acd79acccbbece95fc921fd5b57d2c31fc962b1 (diff) |
fix compilation and linking on Mac OS X
Diffstat (limited to 'swig')
-rw-r--r-- | swig/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 ######################################################################## |