@@ -83,19 +83,11 @@ option(WITH_MPI "Enable Openmpi support" OFF)
8383option (WITH_BOOST "Use boost library instead of GSL" OFF )
8484option (WITH_GSL "Use gsl-library. Alternative is WITH_BOOST" ON )
8585
86- # If SBML is available, it will automaticall enable the support. If ON, then
87- # libSBML must be present.
88- option (WITH_SBML "Enable SBML support. Automatically detected." OFF )
89-
9086# If GSL_STATIC_HOME is set, we use it to search for static gsl libs.
9187option (GSL_STATIC_HOME
9288 "Path prefix where static gsl library can be found e.g. /opt/sw/gsl116 "
9389 OFF
9490 )
95- option (SBML_STATIC_HOME
96- "Path prefix where static sbml library can be found e.g. /opt/sbml/"
97- OFF
98- )
9991option (HDF5_STATIC_HOME
10092 "Path prefix where static hdf5 library can be found e.g /opt/sw/hdf5 "
10193 OFF
@@ -165,57 +157,6 @@ if(WITH_BOOST)
165157 set (WITH_GSL OFF )
166158endif (WITH_BOOST)
167159
168- # If this variable is used while packaging; we build this project using another
169- # cmake script and pass the location of SBML static library using this variable.
170- # Otherwise, this is useless. FIXME: This is not a clean solution.
171- if (SBML_STATIC_HOME)
172- include_directories (${SBML_STATIC_HOME} /include )
173- find_library (LIBSBML_LIBRARIES
174- NAMES libsbml-static .a libsbml.a
175- PATHS "${SBML_STATIC_HOME} /lib" "${SBML_STATIC_HOME} /lib64"
176- NO_DEFAULT_PATH
177- )
178- message (STATUS "- Using static version of LIBSBML_LIBRARIES: ${LIBSBML_LIBRARIES} " )
179- if (LIBSBML_LIBRARIES)
180- message (STATUS "- Successfully located SBML static library: ${LIBSBML_LIBRARIES} " )
181- ELSE ()
182- message (FATAL_ERROR
183- "Can't find static libsbml libraries at path ${SBML_STATIC_HOME} "
184- )
185- endif ()
186- set (LIBSBML_FOUND ON )
187- else (SBML_STATIC_HOME)
188- pkg_check_modules(LIBSBML libsbml)
189- if (NOT LIBSBML_FOUND)
190- message (STATUS "pkg-config could not find sbml. Fallback to default" )
191- find_package (LIBSBML)
192- endif ()
193- endif (SBML_STATIC_HOME)
194-
195- if (LIBSBML_FOUND)
196- message (STATUS "LIBSBML found ${LIBSBML_LIBRARIES} " )
197- include_directories (${LIBSBML_INCLUDE_DIRS} )
198- pkg_check_modules(LibXML2 libxml-2.0)
199- if (!LibXML2_FOUND)
200- find_package (LibXML2 REQUIRED)
201- endif ()
202- include_directories (${LibXML2_INCLUDE_DIRS} )
203- else ()
204- message (
205- "======================================================================\n "
206- "libsbml NOT found. \n\n "
207- "If you want to compile with SBML support, download and install \n "
208- "libsbml-5.9.0 from: \n "
209- "http://sourceforge.net/projects/sbml/files/libsbml/5.9.0/stable/ and\n "
210- "rerun cmake.\n\n "
211- "If you don't want SBML support then continue with `make`.\n\n "
212- "If you install libsbml to non-standard place, let the cmake know by\n "
213- "exporting environment variable SBML_DIR to the location.\n "
214- "=====================================================================\n "
215- )
216- SET (WITH_SBML OFF )
217- endif ()
218-
219160include_directories (msg basecode)
220161
221162set_target_properties (libmoose PROPERTIES COMPILE_DEFINITIONS "MOOSE_LIB" )
@@ -366,7 +307,6 @@ add_subdirectory(biophysics)
366307add_subdirectory (builtins)
367308add_subdirectory (utility)
368309add_subdirectory (mesh)
369- add_subdirectory (sbml)
370310add_subdirectory (mpi)
371311add_subdirectory (signeur)
372312add_subdirectory (ksolve)
@@ -400,13 +340,6 @@ elseif(HDF5_FOUND)
400340 list (APPEND SYSTEM_SHARED_LIBS ${HDF5_LIBRARIES} )
401341endif ()
402342
403- LIST (APPEND STATIC_LIBRARIES moose_sbml)
404- if (SBML_STATIC_HOME)
405- list (APPEND STATIC_LIBRARIES ${LIBSBML_LIBRARIES} )
406- elseif (LIBSBML_FOUND)
407- list (APPEND SYSTEM_SHARED_LIBS ${LIBSBML_LIBRARIES} )
408- endif ()
409-
410343if (WITH_GSL)
411344 if (GSL_STATIC_HOME)
412345 message (STATUS "Using STATIC gsl libraries: ${GSL_LIBRARIES} " )
0 commit comments