mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
326968a70b
* [minizip] Misc fixes * [minizip] CMake config is unofficial * [xlsxio] Update, fixes * [collada-dom] Fix minizip * [fmilib] Fix minizip * [xlsxio] Fix vcpkg quirk
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO brechtsanders/xlsxio
|
|
REF "${VERSION}"
|
|
SHA512 67b9a4e275446f3ca08e91d31f05236855e761c06ed84ea3aea8c25a7cd6729191f6c95b9efe07392775a75e2713e7ec2c6d216b8d310e7b46bee531cccba8be
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-dependencies.patch
|
|
)
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/FindMinizip.cmake")
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DCMAKE_POLICY_DEFAULT_CMP0012=NEW
|
|
-DBUILD_SHARED=${BUILD_SHARED}
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
|
-DWITH_WIDE=OFF
|
|
-DBUILD_DOCUMENTATION=OFF
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_PC_FILES=OFF
|
|
-DBUILD_TOOLS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|