From 190a3c561e84ed0477c2845afdf9d336a33607e8 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 12 Mar 2011 08:28:29 +0000
Subject: [PATCH] swig dependencies

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6fdc043989..051cf63324 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -928,8 +928,8 @@ if(ENABLE_SWIG)
       find_package(PythonLibs)
       include_directories(${PYTHON_INCLUDE_DIR})
       set_source_files_properties(Common/gmshpy.i PROPERTIES CPLUSPLUS ON)
-      swig_add_module(gmshpy python Common/gmshpy.i)
-      swig_link_libraries(gmshpy ${PYTHON_LIBRARIES} ${LINK_LIBRARIES} shared)
+      swig_add_module(gmshpy python Common/gmshpy.i ${GMSH_API})
+      swig_link_libraries(gmshpy ${PYTHON_LIBRARIES} shared)
     endif(SWIG_MAJOR_VERSION EQUAL 1)
   endif(SWIG_FOUND)
 endif(ENABLE_SWIG)
-- 
GitLab