ports/devel/cmake-core/files/InitialCache.cmake.in
Jason E. Hale f7c59ccf4e devel/cmake-core: Remove CPACK option
This option has been a point of confusion several times. It was once an
experimental feature, but it has been on by default for many years and
there is really no point in disabling it anymore.

Make sure we are always linking to libarchive from base. This was
previously conditionalized to only happen if the CPACK option was
enabled, so if the user had the CPACK option disabled and had libarchive
from ports installed, the ports version would be linked to. [1]

Add missing dns/libidn2 dependency. This is an optional dependency that
didn't manifest itself in poudriere, but it gets linked to if previously
installed on a live system build.

Reported by:	vvd on #freebsd-desktop [1]
2024-11-17 22:11:40 -05:00

15 lines
634 B
CMake

# TODO: Add TEST option to enable regression tests. The tests require
# additional packages to be installed and a small amount of patching
# to account for our local changes.
set(BUILD_TESTING OFF CACHE BOOL
"Build the testing tree.")
set(CPACK_ENABLE_FREEBSD_PKG ON CACHE BOOL
"Enable pkg(8) generator in CPack")
# Use base libarchive instead of the ports or bundled version, because
# libpkg links against base.
set(LibArchive_INCLUDE_DIR "/usr/include" CACHE PATH
"Directory where LibArchive headers are located.")
set(LibArchive_LIBRARY "/usr/lib/libarchive.so" CACHE PATH
"LibArchive library to link against.")