2023-10-13 19:55:58 +02:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2021-08-26 18:34:31 +02:00
|
|
|
|
2021-03-29 18:52:37 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ginkgo-project/ginkgo
|
2023-10-13 19:55:58 +02:00
|
|
|
REF "v${VERSION}"
|
2024-12-12 18:16:56 +01:00
|
|
|
SHA512 9a52534cf19f908f776ed54b43791e621a9bd5da1fec93a4f035cf4535ddb0ce9cb9e6623ee57c631c76012b4f3ed5066ec731dc3ecac722f6b5d705ec7fd4c7
|
|
|
|
HEAD_REF main
|
2021-03-29 18:52:37 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
openmp GINKGO_BUILD_OMP
|
|
|
|
cuda GINKGO_BUILD_CUDA
|
2023-10-13 19:55:58 +02:00
|
|
|
mpi GINKGO_BUILD_MPI
|
2024-12-12 18:16:56 +01:00
|
|
|
half GINKGO_ENABLE_HALF
|
2021-03-29 18:52:37 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DGINKGO_BUILD_REFERENCE=ON
|
|
|
|
-DGINKGO_BUILD_TESTS=OFF
|
|
|
|
-DGINKGO_BUILD_EXAMPLES=OFF
|
|
|
|
-DGINKGO_BUILD_HIP=OFF
|
2021-08-26 18:34:31 +02:00
|
|
|
-DGINKGO_BUILD_DPCPP=OFF
|
|
|
|
-DGINKGO_BUILD_HWLOC=OFF
|
2021-03-29 18:52:37 +02:00
|
|
|
-DGINKGO_BUILD_BENCHMARKS=OFF
|
|
|
|
-DGINKGO_DEVEL_TOOLS=OFF
|
|
|
|
-DGINKGO_SKIP_DEPENDENCY_UPDATE=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Ginkgo)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ginkgo" RENAME copyright)
|
2021-08-26 18:34:31 +02:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ginkgo")
|
2021-03-29 18:52:37 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2024-07-05 19:32:49 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/CMakeFiles")
|