Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
8a15e882
Commit
8a15e882
authored
Oct 31, 2018
by
Kirill Terekhov
Browse files
Possible remedy to compile with petsc version > 3.5. Update FindPETSc.cmake
parent
78310df9
Pipeline
#152
passed with stages
in 10 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cmake_find/FindPETSc.cmake
View file @
8a15e882
...
...
@@ -120,7 +120,11 @@ find_package_multipass (PETSc petsc_config_current
# Determine whether the PETSc layout is old-style (through 2.3.3) or
# new-style (>= 3.0.0)
if
(
EXISTS
"
${
PETSC_DIR
}
/
${
PETSC_ARCH
}
/include/petscconf.h"
)
# > 2.3.3
if
(
EXISTS
"
${
PETSC_DIR
}
/
${
PETSC_ARCH
}
/lib/petsc/conf/petscvariables"
)
# > 3.5
set
(
petsc_conf_rules
"
${
PETSC_DIR
}
/lib/petsc/conf/rules"
)
set
(
petsc_conf_variables
"
${
PETSC_DIR
}
/lib/petsc/conf/variables"
)
elseif
(
EXISTS
"
${
PETSC_DIR
}
/
${
PETSC_ARCH
}
/include/petscconf.h"
)
# > 2.3.3
# if (EXISTS "${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h") # > 2.3.3
set
(
petsc_conf_rules
"
${
PETSC_DIR
}
/conf/rules"
)
set
(
petsc_conf_variables
"
${
PETSC_DIR
}
/conf/variables"
)
elseif
(
EXISTS
"
${
PETSC_DIR
}
/bmake/
${
PETSC_ARCH
}
/petscconf.h"
)
# <= 2.3.3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment