ports/devel/cmake-core/files/InitialCache.cmake.in
Jason E. Hale 76b8901dae devel/cmake-core: Refactor
Move the update reminder to Uses/Mk/cmake.mk where the version has
been changed since after 7bdeb4414c and will be more likely noticed.

Switch to an out-of-source build. This eliminates the need to remove
certain unwanted files prior to install.

Define a sensible CONFIGURE_LOG for users to report as the default
doesn't exist.

Sort CONFIGURE_ARGS, not necessarily alphabetically, but to improve
readability.

Pet portclippy(1): hoist the post-patch target.

Settle on one sed(1) delimiter instead of three. Pipes (|) seems to
be the most readable here.

Remove cruft from ${FILESDIR}/InitialCache.cmake and convert to SUB_FILES
to take advantage of framework substitutions. archivers/lzmalib is gone,
so there is no need to patch for that. Remove the CPACK_OPTION_COMMENT
variable in favor of CMake logic.
2024-08-20 01:54:56 -04:00

17 lines
784 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.")
# Toggled by the CPACK option. Set to ON by default.
set(CPACK_ENABLE_FREEBSD_PKG %%CPACK_OPTION_VALUE%% CACHE BOOL
"Enable pkg(8) generator in CPack")
if(CPACK_ENABLE_FREEBSD_PKG)
# 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.")
endif(CPACK_ENABLE_FREEBSD_PKG)