Setting boost library mirror in a variable
This commit is contained in:
6
3rdParty/boost/CMakeLists.txt
vendored
6
3rdParty/boost/CMakeLists.txt
vendored
@@ -1,8 +1,8 @@
|
|||||||
Find_Package(Boost QUIET COMPONENTS regex)
|
Find_Package(Boost QUIET COMPONENTS regex)
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
if(NOT DEFINED OPENCV_REPO)
|
if(NOT DEFINED BOOST_LIBRARY_MIRROR)
|
||||||
set(OPENCV_REPO https://github.com/opencv/opencv.git)
|
set(BOOST_LIBRARY_MIRROR https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NOT Boost_FOUND)
|
if (NOT Boost_FOUND)
|
||||||
@@ -10,7 +10,7 @@ if (NOT Boost_FOUND)
|
|||||||
set(BOOST_ENABLE_CMAKE ON)
|
set(BOOST_ENABLE_CMAKE ON)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
Boost
|
Boost
|
||||||
URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz
|
URL ${BOOST_LIBRARY_MIRROR}
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(Boost)
|
FetchContent_MakeAvailable(Boost)
|
||||||
endif()
|
endif()
|
||||||
Reference in New Issue
Block a user