Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Merge requests
!181
fix compilset up inon build syst
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
fix compilset up inon build syst
fixCompilInti
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Stéphane Del Pino
requested to merge
fixCompilInti
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
2
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
854d9bf9
1 commit,
1 year ago
2 files
+
21
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
cmake/FindParMETIS.cmake
+
16
−
9
View file @ 854d9bf9
Edit in single-file editor
Open in Web IDE
# Looking for ParMETIS
find_path
(
PARMETIS_INCLUDE_DIR parmetis.h
PATH_SUFFIX include parmetis
)
PATH_SUFFIX include parmetis
$ENV{PARMETIS_INCDIR}
)
if
(
EXISTS
"
${
PARMETIS_INCLUDE_DIR
}
/parmetis.h"
)
if
(
EXISTS
"
${
PARMETIS_INCLUDE_DIR
}
/parmetis.h"
)
message
(
STATUS
"Found parmetis.h in
${
PARMETIS_INCLUDE_DIR
}
"
)
find_library
(
LIB_PARMETIS parmetis
)
find_library
(
LIB_PARMETIS parmetis
$ENV{PARMETIS_LIBDIR}
)
if
(
"
${
LIB_PARMETIS
}
"
STREQUAL
"LIB_PARMETIS-NOTFOUND"
)
message
(
"** Could not find parmetis library"
)
message
(
WARNING
"** Could not find parmetis library
.
\n
** Is PARMETIS_LIBDIR correctly set (Actual:
\"
$ENV{PARMETIS_LIBDIR}
\"
)?
"
)
endif
()
find_library
(
LIB_METIS metis
)
find_library
(
LIB_METIS metis
$ENV{METIS_LIBDIR}
)
if
(
"
${
LIB_PARMETIS
}
"
STREQUAL
"LIB_METIS-NOTFOUND"
)
message
(
"** Could not find metis library"
)
message
(
WARNING
"** Could not find metis library.
\n
** Is METIS_LIBDIR correctly set (Actual:
\"
$ENV{METIS_LIBDIR}
\"
)?"
)
endif
()
find_path
(
METIS_INCLUDE_DIR metis.h $ENV{METIS_INCDIR}
)
if
(
EXISTS
"
${
METIS_INCLUDE_DIR
}
/metis.h"
)
message
(
STATUS
"Found metis.h in
${
METIS_INCLUDE_DIR
}
"
)
set
(
PARMETIS_LIBRARIES
${
LIB_PARMETIS
}
${
LIB_METIS
}
)
message
(
STATUS
"Found parmetis/metis libraries
${
PARMETIS_LIBRARIES
}
"
)
else
()
message
(
WARNING
"** Could not find metis.h.
\n
** Is METIS_INCDIR correctly set (Actual:
\"
$ENV{METIS_INCDIR}
\"
)?"
)
endif
()
set
(
PARMETIS_LIBRARIES
${
LIB_PARMETIS
}
${
LIB_METIS
}
)
message
(
STATUS
"Found parmetis/metis libraries
${
PARMETIS_LIBRARIES
}
"
)
else
()
message
(
"** Could not find parmetis.h"
)
message
(
WARNING
"** Could not find parmetis.h
.
\n
** Is PARMETIS_INCDIR correctly set (Actual:
\"
$ENV{PARMETIS_INCDIR}
\"
)?
"
)
endif
()
mark_as_advanced
(
PARMETIS_INCLUDE_DIR PARMETIS_LIBRARIES
)
Loading