Skip to content

Instantly share code, notes, and snippets.

@muellermartin
Created March 28, 2016 03:17
Show Gist options
  • Select an option

  • Save muellermartin/059238a0198dcb5c6972 to your computer and use it in GitHub Desktop.

Select an option

Save muellermartin/059238a0198dcb5c6972 to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d67607..c7d86b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,6 +203,10 @@ add_custom_target(uninstall
find_package(PythonLibs 2)
find_package(SWIG)
+if(APPLE)
+ set(PYTHON_LIBRARY "-undefined dynamic_lookup")
+endif(APPLE)
+
if(SWIG_FOUND)
message(STATUS "Minimum SWIG version required is 1.3.31")
set(SWIG_VERSION_CHECK FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment