mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 08:09:08 +08:00
9c2a4a1640
* [iir1] Update to 1.9.4 * [iir1] Overwrite version
32 lines
873 B
CMake
32 lines
873 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO berndporr/iir1
|
|
REF "${VERSION}"
|
|
SHA512 e69b79ba48aa5d5ec2ddb0a31461ac4c15b0489df80fddc1f1f8adc143726fa189dc0dd94a0ed2bb7aa73712f953e27b345a762120ab2d10f54f57a868f0ea42
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-shared-lib.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" IIR1_INSTALL_STATIC)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DIIR1_INSTALL_STATIC=${IIR1_INSTALL_STATIC}
|
|
-DIIR1_BUILD_TESTING=OFF
|
|
-DIIR1_BUILD_DEMO=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME iir CONFIG_PATH lib/cmake/iir)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|