File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66set (CMAKE_FIND_PACKAGE_SORT_DIRECTION DEC)
77find_package (SWIG REQUIRED )
88
9- set (SWIG_VERSION_MIN "3.0 " )
9+ set (SWIG_VERSION_MIN "4.1 " )
1010if (${SWIG_VERSION} VERSION_LESS ${SWIG_VERSION_MIN} )
1111 message (FATAL_ERROR "Requiring SWIG>=${SWIG_VERSION_MIN} "
1212 "but found only ${SWIG_VERSION} ." )
@@ -98,23 +98,10 @@ if(NOT HDF5_FOUND)
9898 AMICI_SWIG_WITHOUT_HDF5 )
9999endif ()
100100
101- if (${SWIG_VERSION} VERSION_GREATER_EQUAL 4.0.0)
102- set_property (
103- TARGET _amici
104- APPEND
105- PROPERTY SWIG_COMPILE_OPTIONS -doxygen )
106- else ()
107- set_property (
108- TARGET _amici
109- APPEND
110- PROPERTY SWIG_COMPILE_OPTIONS -modern )
111- endif ()
112- if (${SWIG_VERSION} VERSION_LESS 4.1.0)
113- set_property (
114- TARGET _amici
115- APPEND
116- PROPERTY SWIG_COMPILE_OPTIONS -py3 )
117- endif ()
101+ set_property (
102+ TARGET _amici
103+ APPEND
104+ PROPERTY SWIG_COMPILE_OPTIONS -doxygen )
118105
119106# NOTE: No public definitions of any dependency are forwarded to swig, they are
120107# only used for compiling the swig-generated source file. Any definition that
You can’t perform that action at this time.
0 commit comments