Skip to content
Snippets Groups Projects
Commit 4aa533b9 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[Cmake] Add petsc flags and libs to the ALL_PKG_{FLAGS, LIBS}

These have been forgotten in the first place.
parent db5d4c71
No related tags found
No related merge requests found
......@@ -295,3 +295,11 @@ include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (PETSc
"PETSc could not be found. Be sure to set PETSC_DIR and PETSC_ARCH."
PETSC_INCLUDES PETSC_LIBRARIES PETSC_EXECUTABLE_RUNS)
#add all petsc related flags to ALL_PKG_FLAGS, this must happen regardless of a target using add_dune_petsc_flags
if(PETSC_FOUND)
foreach(dir ${PETSC_INCLUDES})
set_property(GLOBAL APPEND PROPERTY ALL_PKG_FLAGS "-I${dir}")
endforeach()
set_property(GLOBAL APPEND PROPERTY ALL_PKG_LIBS "${PETSC_LIBRARIES}")
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment