2020-09-03 01:41:34 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2017-05-16 17:00:05 +08:00
|
|
|
|
2020-09-03 01:41:34 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-09-03 01:41:34 +08:00
|
|
|
REPO hypre-space/hypre
|
2021-11-16 06:35:34 +08:00
|
|
|
REF v2.23.0
|
|
|
|
SHA512 bed8426d093e2290ab443f49deffad96a64e1b3844a4236bc59af19523b16ea8bf2318db21e42ab2b8a4dd529246ba1d9a4eb0cb3bd943633569d03e6311f67f
|
2020-09-03 01:41:34 +08:00
|
|
|
HEAD_REF master
|
2021-11-16 06:35:34 +08:00
|
|
|
PATCHES
|
|
|
|
fix-dll-install-destination.patch
|
2017-05-16 17:00:05 +08:00
|
|
|
)
|
|
|
|
|
2021-11-16 06:35:34 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" HYPRE_SHARED)
|
2017-05-16 17:00:05 +08:00
|
|
|
|
2021-11-16 06:35:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/src"
|
2017-05-16 17:00:05 +08:00
|
|
|
OPTIONS
|
2021-11-16 06:35:34 +08:00
|
|
|
-DHYPRE_SHARED=${HYPRE_SHARED}
|
2020-09-03 01:41:34 +08:00
|
|
|
-DHYPRE_ENABLE_HYPRE_BLAS=OFF
|
|
|
|
-DHYPRE_ENABLE_HYPRE_LAPACK=OFF
|
2017-05-16 17:00:05 +08:00
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DHYPRE_BUILD_TYPE=Release
|
2021-11-16 06:35:34 +08:00
|
|
|
"-DHYPRE_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}"
|
2017-05-16 17:00:05 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DHYPRE_BUILD_TYPE=Debug
|
2021-11-16 06:35:34 +08:00
|
|
|
"-DHYPRE_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/debug"
|
2017-05-16 17:00:05 +08:00
|
|
|
)
|
|
|
|
|
2021-11-16 06:35:34 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-05-16 17:00:05 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-16 06:35:34 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/HYPRE)
|
2020-09-03 01:41:34 +08:00
|
|
|
|
2021-11-16 06:35:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-05-16 17:00:05 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-16 06:35:34 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|