vcpkg/ports/cppfs/portfile.cmake
autoantwort 4efb7ed628
[cppfs] improve port (#29175)
* [cppfs] improve port

* Remove ci.baseline.txt entries.

* Add license.

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-01-25 12:35:29 -08:00

33 lines
957 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cginternals/cppfs
REF 156d72e2cf0a9b12bdce369fc5b5d98fb5dffe2d # v1.3.0
SHA512 da1e09f79d9e65e7676784f47196645aabe1e1284f0ea5e48e845a244f5d49f5ea4b032f9e2e38c8e6a29657ebe636c9b1c9a4601c4bbc7637e7f592c52a8961
HEAD_REF master
PATCHES
LibCrypto-fix.patch
cmake-export-fix.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
ssh OPTION_BUILD_SSH_BACKEND
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DOPTION_BUILD_TESTS=Off
-DOPTION_FORCE_SYSTEM_DIR_INSTALL=On
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cppfs" RENAME copyright)