mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:08:03 +08:00
[armadillo] Fix installation path (#7041)
This commit is contained in:
parent
8f77d4fe06
commit
cf9820bb86
@ -1,4 +1,4 @@
|
||||
Source: armadillo
|
||||
Version: 2019-04-16-3
|
||||
Version: 2019-04-16-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
|
||||
Build-Depends: openblas (!osx), clapack (!osx)
|
||||
|
13
ports/armadillo/fix-CMakePath.patch
Normal file
13
ports/armadillo/fix-CMakePath.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9fea721..e6a273d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -473,7 +473,7 @@ install(EXPORT ArmadilloLibraryDepends DESTINATION
|
||||
# and install it
|
||||
set(ARMADILLO_INCLUDE_DIRS "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
|
||||
set(ARMADILLO_LIB_DIR "${CMAKE_INSTALL_FULL_LIBDIR}")
|
||||
-set(ARMADILLO_CMAKE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/Armadillo/CMake")
|
||||
+set(ARMADILLO_CMAKE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/Armadillo")
|
||||
|
||||
|
||||
message(STATUS "Generating '${PROJECT_BINARY_DIR}/InstallFiles/ArmadilloConfig.cmake'")
|
@ -11,6 +11,7 @@ vcpkg_from_gitlab(
|
||||
HEAD_REF 9.400.x
|
||||
PATCHES
|
||||
remove_custom_modules.patch
|
||||
fix-CMakePath.patch
|
||||
)
|
||||
|
||||
file(REMOVE ${SOURCE_PATH}/cmake_aux/Modules/ARMA_FindBLAS.cmake)
|
||||
@ -31,6 +32,13 @@ vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/Armadillo)
|
||||
|
||||
file(GLOB SHARE_CONTENT ${CURRENT_PACKAGES_DIR}/share/Armadillo)
|
||||
list(LENGTH SHARE_CONTENT SHARE_LEN)
|
||||
if(SHARE_LEN EQUAL 0)
|
||||
# On case sensitive file system there is an extra empty directory created that should be removed
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/Armadillo)
|
||||
endif()
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/armadillo)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/armadillo RENAME copyright)
|
||||
|
4
ports/armadillo/usage
Normal file
4
ports/armadillo/usage
Normal file
@ -0,0 +1,4 @@
|
||||
The package armadillo provides CMake targets:
|
||||
|
||||
find_package(Armadillo CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE ${ARMADILLO_LIBRARIES})
|
Loading…
x
Reference in New Issue
Block a user