mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 06:17:50 +08:00
d98696de85
* re-trigger ci test * [kealib] Switch repo to github * [mongo-c-driver] Set icu as a feature * [monkeys-audio] Update version to 5.24 * [mongo-c-driver] Fix arm build * [mongo-c-driver] Re-generate patch * [mongo-c-driver] Remove key word PRIVATE in patch * [llvm] Remove default feature tools * [llvm] Add judgment to install tools * [llvm] Add more condition * [llvm] Fix clang cmake files when selecting feature tools * [halide] Fix build depends info in CONTROL * update baseline
40 lines
1.1 KiB
CMake
40 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ubarsc/kealib
|
|
REF de6dabd414039dd36a1ff01243901cec3f45256e #1.4.11
|
|
SHA512 34032dd27aee0714cbe6b76b2f731a05408fd5ff78080343bcfbc3aa7e6eeb06a341a423cee1e7f3624f4c1f661feaf4ea3a3d2e53172933e49982df0c438a6f
|
|
HEAD_REF master
|
|
PATCHES hdf5_include.patch
|
|
)
|
|
|
|
if ("parallel" IN_LIST FEATURES)
|
|
set(ENABLE_PARALLEL ON)
|
|
else()
|
|
set(ENABLE_PARALLEL OFF)
|
|
endif()
|
|
|
|
if(${VCPKG_LIBRARY_LINKAGE} MATCHES "static")
|
|
set(HDF5_USE_STATIC_LIBRARIES ON)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DHDF5_PREFER_PARALLEL=${ENABLE_PARALLEL}
|
|
-DLIBKEA_WITH_GDAL=OFF
|
|
-DDISABLE_TESTS=ON
|
|
-DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/python/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|