[armadillo] no absolute paths (#22719)

This commit is contained in:
autoantwort 2022-02-02 00:01:35 +01:00 committed by GitHub
parent aad1aa28bf
commit b39014895f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 4 deletions

View File

@ -41,8 +41,11 @@ if(SHARE_LEN EQUAL 0)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Armadillo")
endif()
if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/armadillo_bits/config.hpp" "#define ARMA_AUX_LIBS ${CURRENT_INSTALLED_DIR}/lib/openblas.lib;${CURRENT_INSTALLED_DIR}/lib/lapack.lib;${CURRENT_INSTALLED_DIR}/lib/openblas.lib" "")
set(filename "${CURRENT_PACKAGES_DIR}/include/armadillo_bits/config.hpp")
if(EXISTS "${filename}")
file(READ "${filename}" contents)
string(REGEX REPLACE "\n#define ARMA_AUX_LIBS [^\\n]*\n" "\n" contents "${contents}")
file(WRITE "${filename}" "${contents}")
endif()
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,7 +1,7 @@
{
"name": "armadillo",
"version": "10.6.2",
"port-version": 3,
"port-version": 4,
"description": "Armadillo is a high quality linear algebra library (matrix maths) for the C++ language, aiming towards a good balance between speed and ease of use",
"homepage": "http://arma.sourceforge.net",
"dependencies": [

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ddc4477e6ecc2d66e429e18e9ccd96367da2ce88",
"version": "10.6.2",
"port-version": 4
},
{
"git-tree": "88bb8282f33e16f2c59856f68ed9934ff26c7e02",
"version": "10.6.2",

View File

@ -162,7 +162,7 @@
},
"armadillo": {
"baseline": "10.6.2",
"port-version": 3
"port-version": 4
},
"arrayfire": {
"baseline": "3.8.0",