From: Joel Rosdahl Date: Tue, 21 May 2024 19:20:50 +0000 (+0200) Subject: build: Fix setting of DEPS=LOCAL if FETCHCONTENT_FULLY_DISCONNECTED=ON X-Git-Tag: v4.10~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9f3feebd8d96e919afe8f2b1c80912f3a46ea40;p=thirdparty%2Fccache.git build: Fix setting of DEPS=LOCAL if FETCHCONTENT_FULLY_DISCONNECTED=ON Fixes #1456. --- diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index f162b2dd..05e1d47f 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -5,10 +5,6 @@ if(POLICY CMP0135) cmake_policy(SET CMP0135 NEW) endif() -if(NOT DEPS AND FETCHCONTENT_FULLY_DISCONNECTED) - message(STATUS "Setting DEPS=LOCAL as FETCHCONTENT_FULLY_DISCONNECTED is set") -endif() - # Hint about usage of the previously supported OFFLINE variable. if(OFFLINE) message(FATAL_ERROR "Please use -D DEPS=LOCAL instead of -D OFFLINE=ON") @@ -19,6 +15,11 @@ endif() set(DEPS AUTO CACHE STRING "How to retrieve third party dependencies") set_property(CACHE DEPS PROPERTY STRINGS AUTO DOWNLOAD LOCAL) +if(FETCHCONTENT_FULLY_DISCONNECTED) + message(STATUS "Setting DEPS=LOCAL as FETCHCONTENT_FULLY_DISCONNECTED is set") + set(DEPS LOCAL) +endif() + find_package(Blake3 1.4.0 MODULE REQUIRED) find_package(CppHttplib 0.10.6 MODULE REQUIRED) find_package(Fmt 8.0.0 MODULE REQUIRED)