diff --git a/CMakeLists.txt b/CMakeLists.txt index a1335759971411fa62f8167e6231828eaad5f2d0..8c37e14fb96a4771a93b7a3be17258200b50b05d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1267,10 +1267,10 @@ if(ENABLE_WRAP_PYTHON) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) set(CMAKE_SWIG_FLAGS "") set_source_files_properties(Common/gmsh.i PROPERTIES CPLUSPLUS ON) - swig_add_module(gmsh python Common/gmsh.i) - swig_link_libraries(gmsh ${PYTHON_LIBRARIES} shared) + swig_add_module(gmshpython python Common/gmsh.i) + swig_link_libraries(gmshpython ${PYTHON_LIBRARIES} shared) if(APPLE) - set_target_properties("_gmsh" PROPERTIES LINK_FLAGS + set_target_properties("_gmshpython" PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace") endif(APPLE) # internal developer API bindings