Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Whitley <jwhitley@autonomoustuff.com>
  • Loading branch information
esteve authored and Joshua Whitley committed May 16, 2019
1 parent fb1fe30 commit 2e36129
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Get Numpy include directories
execute_process(
COMMAND python -c "import sys, numpy; sys.stdout.write(numpy.get_include())"
OUTPUT_VARIABLE Numpy_INCLUDE_DIRS
RESULT_VARIABLE retcode)
if(NOT ${retcode} EQUAL 0)
message(FATAL_ERROR "Failed to get Numpy include dirs by numpy.get_include(). Exit code: ${retcode}")
if(NOT DEFINED Numpy_INCLUDE_DIRS)
# Get Numpy include directories
execute_process(
COMMAND python -c "import sys, numpy; sys.stdout.write(numpy.get_include())"
OUTPUT_VARIABLE Numpy_INCLUDE_DIRS
RESULT_VARIABLE retcode)
if(NOT ${retcode} EQUAL 0)
message(FATAL_ERROR "Failed to get Numpy include dirs by numpy.get_include(). Exit code: ${retcode}")
endif()
endif()
# Compile nms.pyx
include_directories(${Numpy_INCLUDE_DIRS})
Expand Down

0 comments on commit 2e36129

Please sign in to comment.