mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 17:49:02 +08:00
b313875bae
* [rsm-bsa] update to 4.0.2 * add license * remove `port-version` * update versions
38 lines
986 B
CMake
38 lines
986 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Ryan-rsm-McKenzie/bsa
|
|
REF 4.0.2
|
|
SHA512 075a8c3ec9cdd74d9346defa0d9f96cd776f945816cdff2dd39d3964623d68899afe2d73664aa1990fc7f97d756f813cf7ef29aba568cdc235b8d76172df49ca
|
|
HEAD_REF master
|
|
)
|
|
|
|
if (VCPKG_TARGET_IS_LINUX)
|
|
message(WARNING "Build ${PORT} requires at least gcc 10.")
|
|
endif()
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
xmem BSA_SUPPORT_XMEM
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_TESTING=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME bsa
|
|
CONFIG_PATH "lib/cmake/bsa"
|
|
)
|
|
|
|
file(REMOVE_RECURSE
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|