mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 22:19:07 +08:00
1bf071d189
* Update hypre to 2.23.0 * Update CI baseline * Add back vcpkg_check_linkage(ONLY_STATIC_LIBRARY) on Windows * Update CI baseline Co-authored-by: chausner <chausner@users.noreply.github.com>
40 lines
1.1 KiB
CMake
40 lines
1.1 KiB
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO hypre-space/hypre
|
|
REF v2.23.0
|
|
SHA512 bed8426d093e2290ab443f49deffad96a64e1b3844a4236bc59af19523b16ea8bf2318db21e42ab2b8a4dd529246ba1d9a4eb0cb3bd943633569d03e6311f67f
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-dll-install-destination.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" HYPRE_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/src"
|
|
OPTIONS
|
|
-DHYPRE_SHARED=${HYPRE_SHARED}
|
|
-DHYPRE_ENABLE_HYPRE_BLAS=OFF
|
|
-DHYPRE_ENABLE_HYPRE_LAPACK=OFF
|
|
OPTIONS_RELEASE
|
|
-DHYPRE_BUILD_TYPE=Release
|
|
"-DHYPRE_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}"
|
|
OPTIONS_DEBUG
|
|
-DHYPRE_BUILD_TYPE=Debug
|
|
"-DHYPRE_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/debug"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/HYPRE)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|