Skip to content

Commit bcb2471

Browse files
authored
use a release tar file for opencv fetch content (#63)
1 parent f2a7160 commit bcb2471

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/3rdparty/opencv/opencv.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "CMake build type")
5454

5555
message(STATUS "Fetching OpenCV from Github")
5656
include(FetchContent)
57-
FetchContent_Declare(opencv GIT_REPOSITORY https://github.com/opencv/opencv.git GIT_TAG 4.x
58-
GIT_SHALLOW TRUE GIT_PROGRESS TRUE)
57+
FetchContent_Declare(opencv URL https://github.com/opencv/opencv/archive/refs/tags/4.11.0.tar.gz)
5958
FetchContent_MakeAvailable(opencv)
6059
# OpenCV_INCLUDE_DIRS is set by OpenCVConfig.cmake and is unavailable after simply building
6160
set(OpenCV_INCLUDE_DIRS "${opencv_SOURCE_DIR}/include")

0 commit comments

Comments
 (0)