Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2022 09:17:41 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 33ec243a799f - main - Uses/cmake.mk: Always pass FETCHCONTENT_FULLY_DISCONNECTED=1 to CMAKE_ARGS.
Message-ID:  <202210180917.29I9Hf5s034094@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33ec243a799f8eae4402334bc2e851ac1ad3d293

commit 33ec243a799f8eae4402334bc2e851ac1ad3d293
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-10-17 08:07:11 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-10-18 09:17:00 +0000

    Uses/cmake.mk: Always pass FETCHCONTENT_FULLY_DISCONNECTED=1 to CMAKE_ARGS.
    
    Summary:
    This variable makes `FetchContent_*()` CMake functions to disable any network
    access, which is exactly what we expect in Ports framework.
    
    Test Plan: `poudriere testport` on a simple CMake port.
    
    Reviewed By: #kde, #portmgr, tcberner
    
    Differential Revision: https://reviews.freebsd.org/D37015
---
 Mk/Uses/cmake.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Mk/Uses/cmake.mk b/Mk/Uses/cmake.mk
index 901d65e8fd57..d739cb1e3fdc 100644
--- a/Mk/Uses/cmake.mk
+++ b/Mk/Uses/cmake.mk
@@ -90,7 +90,8 @@ CMAKE_ARGS+=		-DCMAKE_C_COMPILER:STRING="${CC}" \
 			-DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \
 			-DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES \
 			-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES \
-			-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
+			-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+			-DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=ON
 
 # Handle the option-like CMAKE_ON and CMAKE_OFF lists.
 .  for _bool_kind in ON OFF



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210180917.29I9Hf5s034094>