Commit 8ebce204 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: FindNumpy is more portable

parent d79bbf76
......@@ -25,7 +25,7 @@
# NUMPY_INCLUDE_DIR - where to find numpy/arrayobject.h, etc.
EXEC_PROGRAM ("${PYTHON_EXECUTABLE}"
ARGS "${CMAKE_SOURCE_DIR}/CMake/otbTestNumpy.py"
ARGS "-c" "'import numpy; print(numpy.get_include());'"
OUTPUT_VARIABLE NUMPY_INCLUDE_DIR
RETURN_VALUE NUMPY_NOT_FOUND)
......
import numpy
print(numpy.get_include())
Markdown is supported
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