fix tests on macOS

This commit is contained in:
Philipp Moritz
2016-07-25 11:45:54 -07:00
parent 0a26135821
commit 5f337db809
4 changed files with 51 additions and 16 deletions
+3 -3
View File
@@ -14,8 +14,8 @@
unset(NUMPY_VERSION)
unset(NUMPY_INCLUDE_DIR)
if(PYTHONINTERP_FOUND)
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
if(NOT "${CUSTOM_PYTHON_EXECUTABLE}" STREQUAL "CUSTOM_PYTHON_EXECUTABLE-NOTFOUND")
execute_process(COMMAND "${CUSTOM_PYTHON_EXECUTABLE}" "-c"
"import numpy as n; print(n.__version__); print(n.get_include());"
RESULT_VARIABLE __result
OUTPUT_VARIABLE __output
@@ -42,7 +42,7 @@ if(PYTHONINTERP_FOUND)
endif()
endif()
else()
message(STATUS "To find NumPy Python interpretator is required to be found.")
message(STATUS "To find NumPy Python executable is required to be found.")
endif()
include(FindPackageHandleStandardArgs)