From 1aac70719958813b99bf6e5a789b3732f1e39e75 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Tue, 16 Jul 2024 13:24:08 +0300 Subject: [PATCH] Setting boost library mirror in a variable --- 3rdParty/boost/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/3rdParty/boost/CMakeLists.txt b/3rdParty/boost/CMakeLists.txt index b082a7d..2a8bdb6 100644 --- a/3rdParty/boost/CMakeLists.txt +++ b/3rdParty/boost/CMakeLists.txt @@ -1,8 +1,8 @@ Find_Package(Boost QUIET COMPONENTS regex) include(FetchContent) -if(NOT DEFINED OPENCV_REPO) - set(OPENCV_REPO https://github.com/opencv/opencv.git) +if(NOT DEFINED BOOST_LIBRARY_MIRROR) + set(BOOST_LIBRARY_MIRROR https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz) endif () if (NOT Boost_FOUND) @@ -10,7 +10,7 @@ if (NOT Boost_FOUND) set(BOOST_ENABLE_CMAKE ON) FetchContent_Declare( 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) endif() \ No newline at end of file