Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ports/armadillo/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Source: armadillo
Version: 2019-04-16-f00d3225
Version: 2019-04-16-f00d3225-1
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
Build-Depends: openblas
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
12 changes: 11 additions & 1 deletion ports/armadillo/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ vcpkg_from_gitlab(
HEAD_REF 9.400.x
)

if (WIN32)
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
set(LIBRARY_SUFFIX ".lib")
elseif (UNIX)
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
set(LIBRARY_SUFFIX ".a")
else()
message(FATAL_ERROR "Unsupport platform: ${VCPKG_CMAKE_SYSTEM_NAME}")
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DDETECT_HDF5=false
-DBLAS_LIBRARY:FILEPATH=${CURRENT_INSTALLED_DIR}/lib/openblas${LIBRARY_SUFFIX}
-DLAPACK_LIBRARY:FILEPATH=${CURRENT_INSTALLED_DIR}/lib/openblas${LIBRARY_SUFFIX}
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
)

vcpkg_install_cmake()
Expand All @@ -26,4 +36,4 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)

file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/Armadillo RENAME copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/armadillo RENAME copyright)