mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-06 20:15:00 +08:00
29 lines
858 B
CMake
29 lines
858 B
CMake
|
vcpkg_fail_port_install(ON_TARGET "OSX" "UWP" ON_ARCH "x86")
|
||
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO Ryan-rsm-McKenzie/bsa
|
||
|
REF 2.0.3
|
||
|
SHA512 b54f1cbc88e55b98b0c25ee81007dc42df736836784b2a1e2e91652b46a73054671d798cc0007ea79b7cf0c8181021bb0cbc95ae407d4a538298d668b4c8fe69
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
if (VCPKG_TARGET_IS_LINUX)
|
||
|
message(WARNING "Build ${PORT} requires at least gcc 10.")
|
||
|
endif()
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
OPTIONS
|
||
|
-DBUILD_TESTING=OFF
|
||
|
)
|
||
|
vcpkg_cmake_install()
|
||
|
vcpkg_cmake_config_fixup(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)
|