Skip to content
Snippets Groups Projects
Commit 2b3c90df authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

cmake : allow to manually specify numpy include directory (usefull when

cross-compiling) + dg : add numpy to cross-compilation instructions
parent 67e98eb9
No related branches found
No related tags found
No related merge requests found
......@@ -1121,10 +1121,12 @@ endif(ENABLE_WRAP_PYTHON)
if(HAVE_PYTHON)
if(ENABLE_NUMPY)
if (NOT NUMPY_INC)
EXEC_PROGRAM (${PYTHON_EXECUTABLE}
ARGS "-c \"import numpy; print(numpy.get_include())\""
OUTPUT_VARIABLE NUMPY_INC
RETURN_VALUE NUMPY_NOT_FOUND)
endif(NOT NUMPY_INC)
if(NUMPY_INC)
list(APPEND EXTERNAL_INCLUDES ${NUMPY_INC})
set_config_option(HAVE_NUMPY "Numpy")
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment