Skip to content
Snippets Groups Projects
Commit a7b740cb authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[CMake] Added option OGS_USE_CVODE.

parent 6d94d62e
Branches
Tags
No related merge requests found
......@@ -48,6 +48,7 @@ set(OGS_CONAN_BUILD "missing" CACHE STRING "Possible values: all, missing, \
if(OGS_USE_PETSC)
set(OGS_USE_MPI ON CACHE BOOL "Use MPI" FORCE)
endif()
option(OGS_USE_CVODE "Use the Sundials CVODE module?" OFF)
### CMake includes ###
include(PreFind)
......
......@@ -92,7 +92,8 @@ pipeline {
cmakeOptions =
'-DOGS_CPU_ARCHITECTURE=generic ' +
'-DOGS_USE_PYTHON=ON ' +
'-DOGS_BUILD_UTILS=ON '
'-DOGS_BUILD_UTILS=ON ' +
'-DOGS_USE_CVODE=ON '
}
build {
target="package"
......
......@@ -66,6 +66,10 @@ if(OGS_USE_LIS)
set(CONAN_REQUIRES ${CONAN_REQUIRES} lis/1.7.9@bilke/stable)
endif()
if(OGS_USE_CVODE)
set(CONAN_REQUIRES ${CONAN_REQUIRES} cvode/2.8.2@bilke/stable)
endif()
if(OGS_BUILD_GUI)
set(CONAN_REQUIRES ${CONAN_REQUIRES}
Shapelib/1.3.0@bilke/stable
......
......@@ -158,10 +158,10 @@ elseif(OGS_BUILD_GUI)
endif()
## Sundials cvode ode-solver library
find_package(CVODE)
if(CVODE_FOUND)
if(OGS_USE_CVODE)
find_package(CVODE REQUIRED)
add_definitions(-DCVODE_FOUND)
endif() # CVODE_FOUND
endif()
if(OGS_USE_MFRONT)
find_package(MGIS REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment