libarchive: Set build options the way we need for CMake

This commit is contained in:
Brad King
2025-11-10 14:45:49 -05:00
parent c0354ddf83
commit 3c91d4427d
2 changed files with 3 additions and 0 deletions

View File

@@ -297,6 +297,7 @@ else()
set(ENABLE_TEST OFF)
set(ENABLE_COVERAGE OFF)
set(ENABLE_INSTALL OFF)
set(MSVC_USE_STATIC_CRT OFF)
set(POSIX_REGEX_LIB "" CACHE INTERNAL "libarchive: No POSIX regular expression support")
set(ENABLE_SAFESEH "" CACHE INTERNAL "libarchive: No /SAFESEH linker flag")
set(WINDOWS_VERSION "WIN7" CACHE INTERNAL "libarchive: Set Windows version to use (Windows only)")

View File

@@ -5,8 +5,10 @@ ENDIF()
PROJECT(libarchive C)
#
if(0) # XXX(cmake): not needed for build within cmake
# Include standard installation directories
include(GNUInstallDirs)
endif() # XXX(cmake): end
#
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake")
if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)