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
Show more breadcrumbs
solverstack
morse_cmake
Merge requests
!13
Check either for pastix v5 or v6
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Check either for pastix v5 or v6
pastix_v5_or_6
into
master
Overview
7
Commits
1
Pipelines
0
Changes
1
All threads resolved!
Show all comments
Merged
Xavier Lacoste
requested to merge
pastix_v5_or_6
into
master
7 years ago
Overview
7
Commits
1
Pipelines
0
Changes
1
All threads resolved!
Show all comments
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b1d3b87e
1 commit,
7 years ago
1 file
+
36
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/find/FindPASTIX.cmake
+
36
−
23
Options
@@ -449,34 +449,47 @@ list(REMOVE_DUPLICATES _lib_env)
# ------------------------------------------------
# create list of libs to find
set
(
PASTIX_libs_to_find
"pastix_murge;pastix"
)
# call cmake macro to find the lib path
if
(
PASTIX_LIBDIR
)
set
(
PASTIX_libs_to_find_v5
"pastix_murge;pastix"
)
set
(
PASTIX_libs_to_find_v6
"pastix;pastix_kernels;pastix_spm;pastix_bcsc"
)
foreach
(
v 5 6
)
set
(
V_FOUND TRUE
)
set
(
PASTIX_libs_to_find
${
PASTIX_libs_to_find_v
${
v
}}
)
message
(
STATUS
"Looking for pastix -- Testing is version
${
v
}
"
)
# call cmake macro to find the lib path
foreach
(
pastix_lib
${
PASTIX_libs_to_find
}
)
set
(
PASTIX_
${
pastix_lib
}
_LIBRARY
"PASTIX_
${
pastix_lib
}
_LIBRARY-NOTFOUND"
)
find_library
(
PASTIX_
${
pastix_lib
}
_LIBRARY
NAMES
${
pastix_lib
}
HINTS
${
PASTIX_LIBDIR
}
)
endforeach
()
else
()
if
(
PASTIX_DIR
)
foreach
(
pastix_lib
${
PASTIX_libs_to_find
}
)
set
(
PASTIX_
${
pastix_lib
}
_LIBRARY
"PASTIX_
${
pastix_lib
}
_LIBRARY-NOTFOUND"
)
if
(
PASTIX_LIBDIR
)
find_library
(
PASTIX_
${
pastix_lib
}
_LIBRARY
NAMES
${
pastix_lib
}
HINTS
${
PASTIX_DIR
}
PATH_SUFFIXES lib lib32 lib64
)
endforeach
()
else
()
foreach
(
pastix_lib
${
PASTIX_libs_to_find
}
)
set
(
PASTIX_
${
pastix_lib
}
_LIBRARY
"PASTIX_
${
pastix_lib
}
_LIBRARY-NOTFOUND"
)
find_library
(
PASTIX_
${
pastix_lib
}
_LIBRARY
NAMES
${
pastix_lib
}
HINTS
${
_lib_env
}
)
endforeach
()
HINTS
${
PASTIX_LIBDIR
}
)
else
()
if
(
PASTIX_DIR
)
find_library
(
PASTIX_
${
pastix_lib
}
_LIBRARY
NAMES
${
pastix_lib
}
HINTS
${
PASTIX_DIR
}
PATH_SUFFIXES lib lib32 lib64
)
else
()
find_library
(
PASTIX_
${
pastix_lib
}
_LIBRARY
NAMES
${
pastix_lib
}
HINTS
${
_lib_env
}
)
endif
()
endif
()
if
(
NOT PASTIX_
${
pastix_lib
}
_LIBRARY
)
set
(
V_FOUND FALSE
)
break
()
endif
()
endforeach
()
if
(
V_FOUND
)
set
(
PASTIX_VERSION_MAJOR
${
v
}
)
message
(
STATUS
"Looking for pastix -- major version detected:
${
PASTIX_VERSION_MAJOR
}
"
)
if
(
PASTIX_FIND_VERSION
)
if
(
NOT
${
PASTIX_VERSION_MAJOR
}
EQUAL
${
PASTIX_FIND_VERSION_MAJOR
}
)
message
(
FATAL_ERROR
"Looking for pastix -- PaStiX version found differ from required"
)
endif
()
endif
()
break
()
endif
()
end
i
f
()
endf
oreach
()
# If found, add path to cmake variable
# ------------------------------------
Loading