revert change

need to find PETSc 'twice' to ensure version range ...
This commit is contained in:
Martin Diehl 2022-01-12 07:46:25 +01:00
parent f27efb6074
commit 771e8acdb9
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ endif()
# Dummy project to determine compiler names and version
project(Prerequisites LANGUAGES)
set(ENV{PKG_CONFIG_PATH} "$ENV{PETSC_DIR}/$ENV{PETSC_ARCH}/lib/pkgconfig")
pkg_search_module(PETSC REQUIRED PETSc>=3.12.0 PETSc<3.17.0)
pkg_check_modules(PETSC REQUIRED PETSc>=3.12.0 PETSc<3.17.0)
pkg_get_variable(CMAKE_Fortran_COMPILER PETSc fcompiler)
pkg_get_variable(CMAKE_C_COMPILER PETSc ccompiler)