Commit 3665cfcb authored by frey_m's avatar frey_m
Browse files

AMR-Trilinos: Update CMakeLists.txt

parent 7c7ff7f8
......@@ -160,8 +160,14 @@ STRING(REGEX MATCH "[^0-9]*" HOSTNAME_BASE "${HOSTNAME}")
# Trilinos_TPL_LIBRARIES, instead of cray-tpsl/16.07.1 it uses
# cray-tpsl/16.06.1 libraries -> Linker error.
# We can avoid this issue by not going into the if-statement
IF (ENABLE_SAAMG_SOLVER)
MESSAGE (STATUS "Enable SAAMG_SOLVER " ${ENABLE_SAAMG_SOLVER})
IF (ENABLE_SAAMG_SOLVER OR ENABLE_AMR_MG_SOLVER)
IF ( ENABLE_SAAMG_SOLVER )
MESSAGE (STATUS "Enable SAAMG_SOLVER " ${ENABLE_SAAMG_SOLVER})
ELSE ( ENABLE_SAAMG_SOLVER )
MESSAGE (STATUS "Enable AMR_MG_SOLVER " ${ENABLE_AMR_MG_SOLVER})
ENDIF( ENABLE_SAAMG_SOLVER )
IF (NOT (
${HOSTNAME_BASE} MATCHES "edison" OR
${HOSTNAME_BASE} MATCHES "cori"))
......
......@@ -17,11 +17,17 @@ else ()
set (SAAMG_SOLVER_LIBS "")
endif ()
IF (ENABLE_AMR AND ENABLE_AMR_MG_SOLVER)
if (ENABLE_AMR AND ENABLE_AMR_MG_SOLVER)
set (CMAKE_CXX_FLAGS
"-DHAVE_AMR_MG_SOLVER ${CMAKE_CXX_FLAGS}"
)
ENDIF(ENABLE_AMR AND ENABLE_AMR_MG_SOLVER)
set (AMR_MG_SOLVER_LIBS
${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${Fortran_LIBS}
)
else (ENABLE_AMR AND ENABLE_AMR_MG_SOLVER)
set (AMR_MG_SOLVER_LIBS "")
endif(ENABLE_AMR AND ENABLE_AMR_MG_SOLVER)
set (PACKAGE_COMPILE_OPTIONS \"${CMAKE_CXX_FLAGS}\")
configure_file(config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/OPALconfig.h)
......@@ -145,6 +151,7 @@ endif ()
target_link_libraries (libOPAL
${SAAMG_SOLVER_LIBS}
${AMR_MG_SOLVER_LIBS}
${AMREX_LIBRARIES}
${MPI_CXX_LIBRARIES}
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment