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
|
2023-10-03 07:09:38 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 fe92d09b56107845e3a4b7f0e7bbba5f319a7ebdaaecab3e6b89fae1fe2a79a9dd712806823ea518f5960f0eaa1088f6b82ebac63d3940478d36690f3adec4f2
|
2020-09-03 01:41:34 +08:00
|
|
|
HEAD_REF master
|
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)
|