mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 00:38:59 +08:00
2318038614
Merged upstream as https://github.com/curl/curl/pull/13948
55 lines
1.5 KiB
CMake
55 lines
1.5 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO OpenSCAP/openscap
|
|
REF ${VERSION}
|
|
SHA512 88d095f350cb1b27f30222c809835ad9f182589a4410ea66f6389d9140804a45767b70176bcd52a0ad6b248ccf63153f09e44f93e70b3002d45cc445642a458f
|
|
HEAD_REF dev
|
|
PATCHES
|
|
fix-build.patch
|
|
fix-buildflag-and-install.patch
|
|
fix-utils.patch
|
|
)
|
|
file(REMOVE "${SOURCE_PATH}/cmake/FindThreads.cmake")
|
|
|
|
if ("python" IN_LIST FEATURES)
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
endif()
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
util ENABLE_OSCAP_UTIL
|
|
python ENABLE_PYTHON3
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
|
-DENABLE_PERL=OFF
|
|
-DENABLE_MITRE=OFF
|
|
-DENABLE_VALGRIND=OFF
|
|
-DENABLE_OSCAP_UTIL_DOCKER=OFF
|
|
-DENABLE_OSCAP_UTIL_AS_RPM=OFF
|
|
-DENABLE_OSCAP_UTIL_SSH=OFF
|
|
-DENABLE_OSCAP_UTIL_VM=OFF
|
|
-DENABLE_OSCAP_UTIL_PODMAN=OFF
|
|
-DENABLE_OSCAP_UTIL_CHROOT=OFF
|
|
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
|
|
-DENABLE_TESTS=OFF
|
|
-DENABLE_DOCS=OFF
|
|
-DWANT_BASE64=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
if(ENABLE_OSCAP_UTIL)
|
|
vcpkg_copy_tools(TOOL_NAMES oscap AUTO_CLEAN)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
#Handle copyright
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|