Changes in the port:
- fix prefetch of third party software
- prefetching of distfiles has been fixed
- cmake will now throw an error in ocv_download()
if it is still called
- minor cleanup
- next step: readd some more options, and improve port for
non-poudriere users
PR: 256669
27 lines
1.0 KiB
CMake
27 lines
1.0 KiB
CMake
--- 3rdparty/ippicv/ippicv.cmake.orig 2021-07-05 12:03:22 UTC
|
|
+++ 3rdparty/ippicv/ippicv.cmake
|
|
@@ -34,18 +34,11 @@ function(download_ippicv root_var)
|
|
endif()
|
|
|
|
set(THE_ROOT "${OpenCV_BINARY_DIR}/3rdparty/ippicv")
|
|
- ocv_download(FILENAME ${OPENCV_ICV_NAME}
|
|
- HASH ${OPENCV_ICV_HASH}
|
|
- URL
|
|
- "${OPENCV_IPPICV_URL}"
|
|
- "$ENV{OPENCV_IPPICV_URL}"
|
|
- "https://raw.githubusercontent.com/opencv/opencv_3rdparty/${IPPICV_COMMIT}/ippicv/"
|
|
- DESTINATION_DIR "${THE_ROOT}"
|
|
- ID IPPICV
|
|
- STATUS res
|
|
- UNPACK RELATIVE_URL)
|
|
-
|
|
- if(res)
|
|
+ set(FILENAME ${THE_ROOT}/${OPENCV_ICV_PACKAGE_SUBDIR})
|
|
+ if(EXISTS ${FILENAME})
|
|
+ message("++ ippicv: Using prefetched ${OPENCV_ICV_PACKAGE_SUBDIR}")
|
|
set(${root_var} "${THE_ROOT}/${OPENCV_ICV_PACKAGE_SUBDIR}" PARENT_SCOPE)
|
|
+ else()
|
|
+ message(WARNING "++ ippicv: Could not find ${OPENCV_ICV_PACKAGE_SUBDIR} in ${FILENAME}")
|
|
endif()
|
|
endfunction()
|