Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
7e5921ef
Commit
7e5921ef
authored
Apr 22, 2008
by
Douglas Gregor
Browse files
BUG: As a last resort, FindMPI will look for mpi.h in the path
parent
cecb98c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/FindMPI.cmake
View file @
7e5921ef
...
...
@@ -161,6 +161,13 @@ elseif (MPI_COMPILE_CMDLINE)
endif
(
MPI_COMPILER_MAY_HAVE_INCLIBDIRS
)
endif
(
NOT MPI_INCLUDE_PATH_WORK
)
if
(
NOT MPI_INCLUDE_PATH_WORK
)
# If all else fails, just search for mpi.h in the normal include
# paths.
find_path
(
MPI_INCLUDE_PATH mpi.h
)
set
(
MPI_INCLUDE_PATH_WORK
${
MPI_INCLUDE_PATH
}
)
endif
(
NOT MPI_INCLUDE_PATH_WORK
)
# Extract linker paths from the link command line
string
(
REGEX MATCHALL
"-L([^
\"
]+|
\"
[^
\"
]+
\"
)"
MPI_ALL_LINK_PATHS
"
${
MPI_LINK_CMDLINE
}
"
)
set
(
MPI_LINK_PATH
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment