mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-15 02:12:02 -05:00
Merge pull request #15 from bska/optional-umfpack
Exclude examples/sim_simple.cpp if UMFPACK is unavailable
This commit is contained in:
commit
d326a7657e
1 file changed
+8
@@ -30,6 +30,8 @@ set (${project}_DEPS
|
||||
opm-core REQUIRED"
|
||||
# Eigen
|
||||
"Eigen3 3.1"
|
||||
# Tim Davis' SuiteSparse package (UMFPACK component)
|
||||
"SuiteSparse COMPONENTS umfpack"
|
||||
)
|
||||
|
||||
# Additional search modules
|
||||
@@ -130,6 +132,12 @@ opm_out_dirs ()
|
||||
# tests files in tests/, examples in examples/
|
||||
opm_sources (${project})
|
||||
|
||||
if (NOT SuiteSparse_FOUND)
|
||||
list(REMOVE_ITEM examples_SOURCES
|
||||
${PROJECT_SOURCE_DIR}/examples/sim_simple.cpp
|
||||
)
|
||||
endif (NOT SuiteSparse_FOUND)
|
||||
|
||||
# Create configuration header which describes available features
|
||||
# necessary to compile this library. Singular version is the names that
|
||||
# is required by this project alone, plural version transitively
|
||||
|
||||
Reference in new issue
Block a user