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 ) 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 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 -DENABLE_OSCAP_UTIL=OFF -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON -DENABLE_TESTS=OFF -DENABLE_DOCS=OFF ) vcpkg_cmake_install() 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")