Skip to content
Snippets Groups Projects
Commit d57153cf authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Ignore cmake_policy 0075 for cmake < 3.12

parent 08aa8ee5
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,9 @@ set(PUGS_ENABLE_PETSC AUTO CACHE STRING
"Choose one of: AUTO ON OFF")
if (PUGS_ENABLE_PETSC MATCHES "^(AUTO|ON)$")
if (${CMAKE_VERSION} VERSION_GREATER "3.12")
cmake_policy(SET CMP0075 OLD)
endif()
find_package(PETSc)
set(PUGS_HAS_PETSC ${PETSC_FOUND})
else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment