diff --git a/Applications/CLI/CMakeLists.txt b/Applications/CLI/CMakeLists.txt index edb87aa77c7ff8a7b3c1afdfeda1f8c8193aeccc..836daed4fc4d91f02b0737bf9dae3bad7e1b9d1c 100644 --- a/Applications/CLI/CMakeLists.txt +++ b/Applications/CLI/CMakeLists.txt @@ -11,4 +11,8 @@ TARGET_LINK_LIBRARIES(ogs ${Boost_LIBRARIES} ) +IF(OGS_USE_PETSC) + TARGET_LINK_LIBRARIES(ogs ${ogs} ${PETSC_LIBRARIES}) +ENDIF() + INCLUDE(Tests.cmake)