Commit d1d6760f authored by David Thompson's avatar David Thompson
Browse files

Change Matplotlib test to avoid console output.

Change-Id: I99ba53434c670cc8e6ee271f88fe80fd18c0323e
parent 1b40557d
# 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment