[gsl] install pkgconfig file (#24285)

This commit is contained in:
Mengna Li 2022-04-22 05:51:10 +08:00 committed by GitHub
parent c656e2eccd
commit ed6dc3a43f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 1 deletions

View File

@ -75,6 +75,9 @@ if(INSTALL_HEADERS)
set(TARGET_INSTALL_OPTIONS PUBLIC_HEADER DESTINATION include/gsl)
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/gsl.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/gsl.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/gsl.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
install(TARGETS gsl gslcblas
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib

View File

@ -24,6 +24,8 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)

View File

@ -1,8 +1,10 @@
{
"name": "gsl",
"version": "2.7.1",
"port-version": 1,
"description": "The GNU Scientific Library is a numerical library for C and C++ programmers",
"homepage": "https://www.gnu.org/software/gsl/",
"license": "GPL-3.0",
"dependencies": [
{
"name": "vcpkg-cmake",

View File

@ -2650,7 +2650,7 @@
},
"gsl": {
"baseline": "2.7.1",
"port-version": 0
"port-version": 1
},
"gsl-lite": {
"baseline": "0.40.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0bf0e1015fe68141e3c5d0b6777c2d38c352b72d",
"version": "2.7.1",
"port-version": 1
},
{
"git-tree": "dc3b20f09d0d6131faaa2dc0448d60676af96672",
"version": "2.7.1",