mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
Added a patch to scipy-kdtree to fix a np.min bug in query
This commit is contained in:
parent
5dd9fb8620
commit
b384912c42
3 changed files with 55 additions and 0 deletions
19
external/check_and_apply_patch.cmake
vendored
Normal file
19
external/check_and_apply_patch.cmake
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
SET(STAMP ${BUILD_PREFIX}/patch_applied)
|
||||
|
||||
SET(RESULT "not ok")
|
||||
|
||||
IF (EXISTS ${STAMP})
|
||||
FILE(READ ${STAMP} RESULT)
|
||||
ENDIF (EXISTS ${STAMP})
|
||||
|
||||
IF(NOT "${RESULT}" STREQUAL "ok")
|
||||
EXECUTE_PROCESS(COMMAND patch -p0 -i ${PATCH_FILE}
|
||||
WORKING_DIRECTORY ${SOURCE_PREFIX}
|
||||
RESULT_VARIABLE okcode)
|
||||
IF(NOT "${okcode}" STREQUAL "0")
|
||||
FILE(WRITE ${STAMP} "not-applied")
|
||||
MESSAGE(FATAL_ERROR "Patch not applied")
|
||||
ELSE(NOT "${okcode}" STREQUAL "0")
|
||||
FILE(WRITE ${STAMP} "ok")
|
||||
ENDIF(NOT "${okcode}" STREQUAL "0")
|
||||
ENDIF(NOT "${RESULT}" STREQUAL "ok")
|
Loading…
Add table
Add a link
Reference in a new issue