2021-11-04 12:44:42 +08:00
|
|
|
vcpkg_fail_port_install(ON_LIBRARY_LINKAGE static)
|
|
|
|
|
2019-04-27 04:34:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO CNugteren/CLBlast
|
2021-11-04 12:44:42 +08:00
|
|
|
REF 1.5.2
|
|
|
|
SHA512 6693704321bb7623a632ebfc71dcf07bbe4ba6c6f03a2ecf52bc10b401ae546bf82cdd3f6cc28aa9ea10f40dc7b2e86a6530f32cfbd522e24d4cf6a75c8c1100
|
2019-04-27 04:34:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-11-04 12:44:42 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-04-27 04:34:54 +08:00
|
|
|
)
|
|
|
|
|
2021-11-04 12:44:42 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2021-11-04 12:44:42 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-04-27 04:34:54 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2021-11-04 12:44:42 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/clblast.dll")
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/clblast.dll" "${CURRENT_PACKAGES_DIR}/bin/clblast.dll")
|
2019-10-08 01:35:13 +08:00
|
|
|
endif()
|
2021-11-04 12:44:42 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/clblast.dll")
|
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/clblast.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/clblast.dll")
|
2019-10-08 01:35:13 +08:00
|
|
|
endif()
|
2021-11-04 12:44:42 +08:00
|
|
|
file(GLOB EXE "${CURRENT_PACKAGES_DIR}/bin/*.exe")
|
|
|
|
file(GLOB DEBUG_EXE "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe")
|
2019-10-08 01:35:13 +08:00
|
|
|
if(EXE OR DEBUG_EXE)
|
|
|
|
file(REMOVE ${EXE} ${DEBUG_EXE})
|
|
|
|
endif()
|
2019-04-27 04:34:54 +08:00
|
|
|
endif()
|
|
|
|
|
2021-11-04 12:44:42 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/clblast)
|
2019-04-27 04:34:54 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-11-04 12:44:42 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-04-27 04:34:54 +08:00
|
|
|
|
2021-11-04 12:44:42 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2021-11-04 12:44:42 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|