Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MostafaMollaali
dynamic
Commits
e96814e0
Commit
e96814e0
authored
8 years ago
by
Lars Bilke
Committed by
Dmitri Naumov
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added FindCVODE.cmake and search for it in Find.cmake.
parent
4bc76709
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/cmake/Find.cmake
+3
-0
3 additions, 0 deletions
scripts/cmake/Find.cmake
scripts/cmake/cmake/FindCVODE.cmake
+34
-0
34 additions, 0 deletions
scripts/cmake/cmake/FindCVODE.cmake
with
37 additions
and
0 deletions
scripts/cmake/Find.cmake
+
3
−
0
View file @
e96814e0
...
@@ -146,3 +146,6 @@ if(Shapelib_FOUND)
...
@@ -146,3 +146,6 @@ if(Shapelib_FOUND)
elseif
(
OGS_BUILD_GUI
)
elseif
(
OGS_BUILD_GUI
)
message
(
FATAL_ERROR
"Shapelib not found but it is required for OGS_BUILD_GUI!"
)
message
(
FATAL_ERROR
"Shapelib not found but it is required for OGS_BUILD_GUI!"
)
endif
()
endif
()
## Sundials cvode ode-solver library
find_package
(
CVODE
)
This diff is collapsed.
Click to expand it.
scripts/cmake/cmake/FindCVODE.cmake
0 → 100644
+
34
−
0
View file @
e96814e0
# Tries to find Sundials CVODE.
#
# This module will define the following variables:
# CVODE_INCLUDE_DIRS - Location of the CVODE includes
# CVODE_FOUND - true if CVODE was found on the system
# CVODE_LIBRARIES - Required libraries for all requested components
#
# This module accepts the following environment or CMake vars
# CVODE_ROOT - Install location to search for
include
(
FindPackageHandleStandardArgs
)
if
(
NOT
"$ENV{CVODE_ROOT}"
STREQUAL
""
OR NOT
"
${
CVODE_ROOT
}
"
STREQUAL
""
)
list
(
APPEND CMAKE_INCLUDE_PATH
"$ENV{CVODE_ROOT}"
"
${
CVODE_ROOT
}
"
)
list
(
APPEND CMAKE_LIBRARY_PATH
"$ENV{CVODE_ROOT}"
"
${
CVODE_ROOT
}
"
)
endif
()
find_path
(
CVODE_INCLUDE_DIRS sundials_types.h
ENV CVODE_ROOT
PATH_SUFFIXES include include/sundials
)
find_library
(
CVODE_LIBRARIES
NAMES sundials_cvode
ENV CVODE_ROOT
PATH_SUFFIXES lib Lib
)
find_package_handle_standard_args
(
CVODE DEFAULT_MSG
CVODE_LIBRARIES
CVODE_INCLUDE_DIRS
)
mark_as_advanced
(
CVODE_INCLUDE_DIRS CVODE_LIBRARIES
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment