Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
abc6d2d5
Commit
abc6d2d5
authored
10 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
add support for latest dev version of petsc (sigh)
parent
96992783
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+12
-2
12 additions, 2 deletions
CMakeLists.txt
with
12 additions
and
2 deletions
CMakeLists.txt
+
12
−
2
View file @
abc6d2d5
...
@@ -941,6 +941,16 @@ if(HAVE_SOLVER)
...
@@ -941,6 +941,16 @@ if(HAVE_SOLVER)
# find includes by parsing the petscvariables file
# find includes by parsing the petscvariables file
file
(
STRINGS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/conf/petscvariables
file
(
STRINGS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/conf/petscvariables
PETSC_VARIABLES NEWLINE_CONSUME
)
PETSC_VARIABLES NEWLINE_CONSUME
)
endif
(
EXISTS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/conf/petscvariables
)
if
(
EXISTS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/lib/petsc-conf/petscvariables
)
# old-style PETSc installations (using PETSC_DIR and PETSC_ARCH)
message
(
STATUS
"Using PETSc dir:
${
ENV_PETSC_DIR
}
"
)
message
(
STATUS
"Using PETSc arch:
${
ENV_PETSC_ARCH
}
"
)
# find includes by parsing the petscvariables file
file
(
STRINGS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/lib/petsc-conf/petscvariables
PETSC_VARIABLES NEWLINE_CONSUME
)
endif
(
EXISTS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/lib/petsc-conf/petscvariables
)
if
(
PETSC_VARIABLES
)
# try to find PETSC_CC_INCLUDES for PETSc >= 3.4
# try to find PETSC_CC_INCLUDES for PETSc >= 3.4
string
(
REGEX MATCH
"PETSC_CC_INCLUDES = [^
\n\r
]*"
PETSC_PACKAGES_INCLUDES
string
(
REGEX MATCH
"PETSC_CC_INCLUDES = [^
\n\r
]*"
PETSC_PACKAGES_INCLUDES
${
PETSC_VARIABLES
}
)
${
PETSC_VARIABLES
}
)
...
@@ -1031,7 +1041,7 @@ if(HAVE_SOLVER)
...
@@ -1031,7 +1041,7 @@ if(HAVE_SOLVER)
string
(
STRIP
${
LLIBS
}
LLIBS
)
string
(
STRIP
${
LLIBS
}
LLIBS
)
list
(
APPEND EXTERNAL_LIBRARIES
"
${
LLIBS
}
"
)
list
(
APPEND EXTERNAL_LIBRARIES
"
${
LLIBS
}
"
)
endif
(
LLIBS
)
endif
(
LLIBS
)
else
(
EXISTS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/conf/petscvariables
)
else
(
PETSC_VARIABLES
)
# new-style PETSc installations (in standard system directories)
# new-style PETSc installations (in standard system directories)
find_library
(
PETSC_LIBS petsc
)
find_library
(
PETSC_LIBS petsc
)
find_path
(
PETSC_INC
"petsc.h"
PATH_SUFFIXES include/petsc
)
find_path
(
PETSC_INC
"petsc.h"
PATH_SUFFIXES include/petsc
)
...
@@ -1049,7 +1059,7 @@ if(HAVE_SOLVER)
...
@@ -1049,7 +1059,7 @@ if(HAVE_SOLVER)
list
(
APPEND EXTERNAL_LIBRARIES
${
PETSC_LIBS
}
)
list
(
APPEND EXTERNAL_LIBRARIES
${
PETSC_LIBS
}
)
list
(
APPEND EXTERNAL_INCLUDES
${
PETSC_INC
}
)
list
(
APPEND EXTERNAL_INCLUDES
${
PETSC_INC
}
)
endif
(
PETSC_LIBS AND PETSC_INC
)
endif
(
PETSC_LIBS AND PETSC_INC
)
endif
(
EXISTS
${
ENV_PETSC_DIR
}
/
${
ENV_PETSC_ARCH
}
/conf/petscvariables
)
endif
(
PETSC_VARIABLES
)
endif
(
ENABLE_PETSC
)
endif
(
ENABLE_PETSC
)
endif
(
HAVE_SOLVER
)
endif
(
HAVE_SOLVER
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment