diff options
| author | Gleb Popov <arrowd@FreeBSD.org> | 2022-10-17 08:07:11 +0000 |
|---|---|---|
| committer | Gleb Popov <arrowd@FreeBSD.org> | 2022-10-18 09:17:00 +0000 |
| commit | 33ec243a799f8eae4402334bc2e851ac1ad3d293 (patch) | |
| tree | 427204ca193b27dea4e01ba6d6d1172687e81ade | |
| parent | 8781f87e3cc3e6d0c719576bcc4485d32d2b31eb (diff) | |
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
| -rw-r--r-- | Mk/Uses/cmake.mk | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
