Skip to content

Commit

Permalink
Uses/cmake.mk: Always pass FETCHCONTENT_FULLY_DISCONNECTED=1 to CMAKE…
Browse files Browse the repository at this point in the history
…_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
  • Loading branch information
arrowd committed Oct 18, 2022
1 parent 8781f87 commit 33ec243
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mk/Uses/cmake.mk
Expand Up @@ -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
Expand Down

0 comments on commit 33ec243

Please sign in to comment.