Skip to content
Snippets Groups Projects
Commit 748c7896 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

No commit message

No commit message
parent b0d1bb6a
No related branches found
No related tags found
No related merge requests found
......@@ -909,7 +909,8 @@ elseif(MSVC)
endif(WIN32 AND NOT MSVC)
if(ENABLE_SWIG)
find_package(SWIG REQUIRED)
find_package(SWIG)
if(SWIG_FOUND)
message(STATUS "Found SWIG version " ${SWIG_VERSION})
string(SUBSTRING ${SWIG_VERSION} 0 1 SWIG_MAJOR_VERSION)
if(SWIG_MAJOR_VERSION EQUAL 1)
......@@ -920,8 +921,11 @@ if(ENABLE_SWIG)
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} ${EXTERNAL_LIBRARIES} ${LINK_LIBRARIES} shared)
swig_link_libraries(gmshpy ${PYTHON_LIBRARIES} ${LINK_LIBRARIES} shared)
endif(SWIG_MAJOR_VERSION EQUAL 1)
else(SWIG_FOUND)
message("WARNING: Could not find SWIG")
endif(SWIG_FOUND)
endif(ENABLE_SWIG)
find_program(BISON bison)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment