Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
morse_cmake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
solverstack
morse_cmake
Merge requests
!5
Backport updates from pastix
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Backport updates from pastix
pastix
into
master
Overview
1
Commits
1
Pipelines
0
Changes
5
Merged
Mathieu Faverge
requested to merge
pastix
into
master
8 years ago
Overview
1
Commits
1
Pipelines
0
Changes
5
Expand
Update the FindPARSEC to latest naming convention from the master repository
Add METIS integer size detection
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
34b89b55
1 commit,
8 years ago
5 files
+
755
−
1004
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
modules/find/FindMETIS.cmake
+
43
−
0
Options
@@ -20,6 +20,7 @@
@@ -20,6 +20,7 @@
# METIS_INCLUDE_DIRS - metis include directories
# METIS_INCLUDE_DIRS - metis include directories
# METIS_LIBRARY_DIRS - Link directories for metis libraries
# METIS_LIBRARY_DIRS - Link directories for metis libraries
# METIS_LIBRARIES - metis component libraries to be linked
# METIS_LIBRARIES - metis component libraries to be linked
# METIX_INTSIZE - Number of octets occupied by a idx_t (IDXTYPEWIDTH)
#
#
# The user can give specific paths where to find the libraries adding cmake
# The user can give specific paths where to find the libraries adding cmake
# options at configure (ex: cmake path/to/project -DMETIS_DIR=path/to/metis):
# options at configure (ex: cmake path/to/project -DMETIS_DIR=path/to/metis):
@@ -253,6 +254,48 @@ endif()
@@ -253,6 +254,48 @@ endif()
mark_as_advanced
(
METIS_DIR
)
mark_as_advanced
(
METIS_DIR
)
mark_as_advanced
(
METIS_DIR_FOUND
)
mark_as_advanced
(
METIS_DIR_FOUND
)
# Check the size of METIS_Idx
# ---------------------------------
set
(
CMAKE_REQUIRED_INCLUDES
${
METIS_INCLUDE_DIRS
}
)
include
(
CheckCSourceRuns
)
#stdio.h and stdint.h should be included by metis.h directly
set
(
METIS_C_TEST_METIS_Idx_4
"
#include <stdio.h>
#include <stdint.h>
#include <metis.h>
int main(int argc, char **argv) {
if (sizeof(idx_t) == 4)
return 0;
else
return 1;
}
"
)
set
(
METIS_C_TEST_METIS_Idx_8
"
#include <stdio.h>
#include <stdint.h>
#include <metis.h>
int main(int argc, char **argv) {
if (sizeof(idx_t) == 8)
return 0;
else
return 1;
}
"
)
check_c_source_runs
(
"
${
METIS_C_TEST_METIS_Idx_4
}
"
METIS_Idx_4
)
if
(
NOT METIS_Idx_4
)
check_c_source_runs
(
"
${
METIS_C_TEST_METIS_Idx_8
}
"
METIS_Idx_8
)
if
(
NOT METIS_Idx_8
)
set
(
METIS_INTSIZE -1
)
else
()
set
(
METIS_INTSIZE 8
)
endif
()
else
()
set
(
METIS_INTSIZE 4
)
endif
()
set
(
CMAKE_REQUIRED_INCLUDES
""
)
# check that METIS has been found
# check that METIS has been found
# ---------------------------------
# ---------------------------------
include
(
FindPackageHandleStandardArgs
)
include
(
FindPackageHandleStandardArgs
)
Loading