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
Ben Boeckel
ParaView
Commits
cc4a256d
Commit
cc4a256d
authored
Jul 31, 2019
by
Ben Boeckel
⛰
Browse files
Examples/Catalyst: bail if MPI cannot be found
This allows the examples-against-an-install-tree test succeed.
parent
8f7b1b1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Examples/Catalyst/CMakeLists.txt
View file @
cc4a256d
...
...
@@ -27,7 +27,13 @@ if (USE_CATALYST)
# FIXME: This should really be fixed to instead be done per-target.
add_definitions
(
-DUSE_CATALYST
)
else
()
find_package
(
MPI REQUIRED COMPONENTS C
)
find_package
(
MPI COMPONENTS C
)
if
(
NOT MPI_FOUND
)
message
(
STATUS
"
${
CMAKE_PROJECT_NAME
}
requires MPI support, but none was found. "
"Skipping
${
CMAKE_PROJECT_NAME
}
examples."
)
return
()
endif
()
endif
()
option
(
BUILD_TESTING
"Build Testing"
OFF
)
...
...
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