1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

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
This commit is contained in:
Gleb Popov 2022-10-17 11:07:11 +03:00
parent 8781f87e3c
commit 33ec243a79

View File

@ -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