Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
d1d6760f
Commit
d1d6760f
authored
Oct 02, 2012
by
David Thompson
Browse files
Change Matplotlib test to avoid console output.
Change-Id: I99ba53434c670cc8e6ee271f88fe80fd18c0323e
parent
1b40557d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/Matplotlib/CMakeLists.txt
View file @
d1d6760f
# Check that matplotlib is available:
execute_process
(
COMMAND
${
PYTHON_EXECUTABLE
}
-c
"import matplotlib"
RESULT_VARIABLE IMPORT_MATPLOTLIB_EXITCODE
)
RESULT_VARIABLE IMPORT_MATPLOTLIB_EXITCODE
OUTPUT_VARIABLE IMPORT_MATPLOTLIB_OUTPUT
ERROR_VARIABLE IMPORT_MATPLOTLIB_ERROR
)
set
(
MATPLOTLIB_FOUND FALSE
)
if
(
${
IMPORT_MATPLOTLIB_EXITCODE
}
EQUAL 0
)
set
(
MATPLOTLIB_FOUND TRUE
)
endif
()
if
(
NOT MATPLOTLIB_FOUND
)
message
(
FATAL_ERROR
"Matplotlib not found! ('
${
PYTHON_EXECUTABLE
}
-c
\"
import matplotlib
\"
' failed."
)
message
(
FATAL_ERROR
"Matplotlib not found! ('
${
PYTHON_EXECUTABLE
}
-c
\"
import matplotlib
\"
' failed.
)
"
)
endif
()
set
(
Module_SRCS
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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