Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
particle_methods
hysop
Commits
5b73c112
Commit
5b73c112
authored
13 years ago
by
Franck Pérignon
Browse files
Options
Downloads
Patches
Plain Diff
Update cmake mpi-fortran finder
parent
9025ddd8
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
CMake/FindMPI_Fortran.cmake
+8
-8
8 additions, 8 deletions
CMake/FindMPI_Fortran.cmake
with
8 additions
and
8 deletions
CMake/FindMPI_Fortran.cmake
+
8
−
8
View file @
5b73c112
...
...
@@ -10,7 +10,7 @@
# MPI_Fortran_LIBRARIES All libraries to link MPI programs against
#
# F. Pérignon - LJK, Grenoble - march 2011.
# Inspired from original Kitware FindMPI.cmake (only for C/C++ MPI)
# Inspired from original Kitware FindMPI.cmake (
which is written
only for C/C++ MPI)
#
# If mpiexec is not set, that means MPI has not been searched. Forced it
...
...
@@ -137,7 +137,7 @@ elseif (MPI_Fortran_COMPILE_CMDLINE)
separate_arguments
(
MPI_Fortran_INCLUDE_PATH_WORK
)
endif
(
MPI_Fortran_COMPILER_MAY_HAVE_INCLIBDIRS
)
endif
(
NOT MPI_Fortran_INCLUDE_PATH_WORK
)
if
(
NOT MPI_Fortran_INCLUDE_PATH_WORK
)
# If all else fails, just search for mpi.mod in the normal include
# paths.
...
...
@@ -194,22 +194,22 @@ elseif (MPI_Fortran_COMPILE_CMDLINE)
find_library
(
MPI_Fortran_LIB
${
LIB
}
HINTS
${
MPI_Fortran_LINK_PATH
}
)
if
(
MPI_Fortran_LIB
)
list
(
APPEND MPI_Fortran_LIBRARIES
${
MPI_Fortran_LIB
}
)
else
(
MPI_LIB
)
else
(
)
message
(
SEND_ERROR
"Unable to find MPI library
${
LIB
}
"
)
endif
(
MPI_Fortran_LIB
)
endif
(
)
endforeach
(
LIB
)
set
(
MPI_Fortran_LIB
"MPI_LIB-NOTFOUND"
CACHE INTERNAL
"Scratch variable for MPI detection"
FORCE
)
# Chop MPI_LIBRARIES into the old-style MPI_LIBRARY and
# MPI_EXTRA_LIBRARY.
list
(
LENGTH MPI_Fortran_LIBRARIES MPI_Fortran_NUMLIBS
)
list
(
LENGTH MPI_Fortran_LIBNAMES MPI_Fortran_NUMLIBS_EXPECTED
)
if
(
MPI_Fortran_NUMLIBS
EQUAL
MPI_Fortran_NUMLIBS_EXPECTED
)
if
(
MPI_Fortran_NUMLIBS
GREATER
MPI_Fortran_NUMLIBS_EXPECTED
)
list
(
GET MPI_Fortran_LIBRARIES 0 MPI_Fortran_LIBRARY_WORK
)
set
(
MPI_Fortran_LIBRARY
${
MPI_Fortran_LIBRARY_WORK
}
CACHE FILEPATH
"MPI library to link against"
FORCE
)
else
(
MPI_Fortran_NUMLIBS EQUAL MPI_Fortran_NUMLIBS_EXPECTED
)
else
(
)
set
(
MPI_Fortran_LIBRARY
"MPI_Fortran_LIBRARY-NOTFOUND"
CACHE FILEPATH
"MPI library to link against"
FORCE
)
endif
(
MPI_Fortran_NUMLIBS EQUAL MPI_Fortran_NUMLIBS_EXPECTED
)
endif
(
)
if
(
MPI_Fortran_NUMLIBS GREATER 1
)
set
(
MPI_Fortran_EXTRA_LIBRARY_WORK
${
MPI_Fortran_LIBRARIES
}
)
list
(
REMOVE_AT MPI_Fortran_EXTRA_LIBRARY_WORK 0
)
...
...
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