From 5e7123f4e97d80bb4a60e73f9fb2c0018f152d61 Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Wed, 21 Nov 2012 11:27:57 +0000 Subject: [PATCH] python : compile on os X 10.8 with a recent cmake --- wrappers/gmshpy/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrappers/gmshpy/CMakeLists.txt b/wrappers/gmshpy/CMakeLists.txt index 446992475c..c432e66b1a 100644 --- a/wrappers/gmshpy/CMakeLists.txt +++ b/wrappers/gmshpy/CMakeLists.txt @@ -84,6 +84,9 @@ foreach(module ${SWIG_MODULES}) set(GMSH_PYTHON_MODULES_INCLUDE_CODE "${GMSH_PYTHON_MODULES_INCLUDE_CODE}from ${module} import *\n") list(APPEND GMSHPY_DEPENDS "_${module}") + if(APPLE) + set_target_properties("_${module}" PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace") + endif(APPLE) endforeach(module) add_custom_target("_gmshpy" DEPENDS ${GMSHPY_DEPENDS}) -- GitLab