From 0ff67be0b572c37dee54e0a939d6bdd31cf6a094 Mon Sep 17 00:00:00 2001 From: Fengming Yuan Date: Wed, 14 Aug 2024 21:00:00 -0400 Subject: [PATCH] Add libpetsc and libpflotranchem.a into building system. --- components/cmake/common_setup.cmake | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/cmake/common_setup.cmake b/components/cmake/common_setup.cmake index 99829798bc0a..8ca1c1151b65 100644 --- a/components/cmake/common_setup.cmake +++ b/components/cmake/common_setup.cmake @@ -148,4 +148,13 @@ endif() if (ELM_USE_ALQUIMIA) set(SLIBS "${SLIBS} -L${ALQUIMIA_LIB} -lalquimia -Wl,-rpath,${ALQUIMIA_LIB}") -endif() \ No newline at end of file + + if (PFLOTRAN_PATH) + set(SLIBS "${SLIBS} -L${PFLOTRAN_PATH} -lpflotranchem -Wl,-rpath,${PFLOTRAN_PATH}") + + if(PETSC_DIR) + set(SLIBS "${SLIBS} -L${PETSC_DIR}/lib -lpetsc -Wl,-rpath,${PETSC_DIR}/lib") + endif() + endif() + +endif()