[clblas] no absolute paths (#22361)

This commit is contained in:
autoantwort 2022-01-06 05:22:40 +01:00 committed by GitHub
parent 26272a0c2f
commit bd930a1488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 17 deletions

View File

@ -11,13 +11,12 @@ vcpkg_from_github(
# v2.12 has a very old FindOpenCL.cmake using OPENCL_ vs. OpenCL_ var names # v2.12 has a very old FindOpenCL.cmake using OPENCL_ vs. OpenCL_ var names
# conflicting with the built-in, more modern FindOpenCL.cmake # conflicting with the built-in, more modern FindOpenCL.cmake
file(REMOVE ${SOURCE_PATH}/src/FindOpenCL.cmake) file(REMOVE "${SOURCE_PATH}/src/FindOpenCL.cmake")
vcpkg_find_acquire_program(PYTHON3) vcpkg_find_acquire_program(PYTHON3)
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}/src SOURCE_PATH "${SOURCE_PATH}/src"
PREFER_NINJA
OPTIONS OPTIONS
-DBUILD_TEST=OFF -DBUILD_TEST=OFF
-DBUILD_KTEST=OFF -DBUILD_KTEST=OFF
@ -25,26 +24,27 @@ vcpkg_configure_cmake(
-DPYTHON_EXECUTABLE=${PYTHON3} -DPYTHON_EXECUTABLE=${PYTHON3}
) )
vcpkg_install_cmake() vcpkg_cmake_install()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static) if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if(VCPKG_TARGET_IS_WINDOWS) if(VCPKG_TARGET_IS_WINDOWS)
file(REMOVE file(REMOVE
${CURRENT_PACKAGES_DIR}/debug/bin/clBLAS-tune.pdb "${CURRENT_PACKAGES_DIR}/debug/bin/clBLAS-tune.pdb"
${CURRENT_PACKAGES_DIR}/debug/bin/clBLAS-tune.exe "${CURRENT_PACKAGES_DIR}/debug/bin/clBLAS-tune.exe"
${CURRENT_PACKAGES_DIR}/bin/clBLAS-tune.exe "${CURRENT_PACKAGES_DIR}/bin/clBLAS-tune.exe"
) )
endif() endif()
if(VCPKG_TARGET_IS_WINDOWS) if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_fixup_cmake_targets(CONFIG_PATH CMake) vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
else() else()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/clBLAS) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/clBLAS)
endif() endif()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION ${CURRENT_PACKAGES_DIR}/share/clblas RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clblas" RENAME copyright)

View File

@ -1,9 +1,17 @@
{ {
"name": "clblas", "name": "clblas",
"version-string": "2.12", "version": "2.12",
"port-version": 5, "port-version": 6,
"description": "clBLAS is an OpenCL 1.2 accelerated BLAS (Basic Linear Algebra Subsystem) library.", "description": "clBLAS is an OpenCL 1.2 accelerated BLAS (Basic Linear Algebra Subsystem) library.",
"dependencies": [ "dependencies": [
"opencl" "opencl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
] ]
} }

View File

@ -1382,7 +1382,7 @@
}, },
"clblas": { "clblas": {
"baseline": "2.12", "baseline": "2.12",
"port-version": 5 "port-version": 6
}, },
"clblast": { "clblast": {
"baseline": "1.5.2", "baseline": "1.5.2",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "a94b503ed4a4a74fa316ac65c363968092a0b026",
"version": "2.12",
"port-version": 6
},
{ {
"git-tree": "0972ab18d9864a174d8c9acb7cf1add27c6a4ce2", "git-tree": "0972ab18d9864a174d8c9acb7cf1add27c6a4ce2",
"version-string": "2.12", "version-string": "2.12",