mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use CMake config of amgcl itself
This commit is contained in:
parent
3c1bfeb72f
commit
a08195a983
@ -213,16 +213,11 @@ if(OpenCL_FOUND)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# search for amgcl
|
||||
find_file(AMG_HPP amgcl/amg.hpp HINTS ${AMGCL_INCLUDE_DIRS})
|
||||
if(AMG_HPP)
|
||||
find_package(amgcl)
|
||||
if(amgcl_FOUND)
|
||||
set(HAVE_AMGCL 1)
|
||||
set(AMGCL_FOUND 1)
|
||||
include_directories(${AMGCL_INCLUDE_DIRS})
|
||||
set_source_files_properties(opm/simulators/linalg/bda/amgclSolverBackend.cpp PROPERTIES LANGUAGE CUDA)
|
||||
else()
|
||||
set(HAVE_AMGCL 0)
|
||||
set(AMGCL_FOUND 0)
|
||||
endif()
|
||||
|
||||
# read the list of components from this file (in the project directory);
|
||||
|
@ -114,7 +114,7 @@ if(HAVE_FPGA)
|
||||
list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/MultisegmentWellContribution.cpp)
|
||||
list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/WellContributions.cpp)
|
||||
endif()
|
||||
if(AMGCL_FOUND)
|
||||
if(HAVE_AMGCL)
|
||||
list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/amgclSolverBackend.cpp)
|
||||
endif()
|
||||
if(MPI_FOUND)
|
||||
|
Loading…
Reference in New Issue
Block a user