[netcdf-c] Fix usage (#16085)

* [netcdf-c] Fix usage

* update version record
This commit is contained in:
Jack·Boos·Yu 2021-02-08 14:06:41 -08:00 committed by GitHub
parent 8a95605a7b
commit 7a438171d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
Source: netcdf-c
Version: 4.7.4
Port-Version: 1
Port-Version: 2
Build-Depends: hdf5, curl
Homepage: https://github.com/Unidata/netcdf-c
Description: a set of self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.

View File

@ -41,7 +41,7 @@ vcpkg_configure_cmake(
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/netcdf)
vcpkg_fixup_cmake_targets(CONFIG_PATH share/netcdf TARGET_PATH share/netcdf)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin)
@ -50,5 +50,4 @@ endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

View File

@ -1,4 +0,0 @@
The package netcdf-c provides CMake targets:
find_package(netCDF CONFIG REQUIRED)
target_link_libraries(main PRIVATE netcdf)

View File

@ -4030,7 +4030,7 @@
},
"netcdf-c": {
"baseline": "4.7.4",
"port-version": 1
"port-version": 2
},
"netcdf-cxx4": {
"baseline": "4.3.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "aa42781f00db0c2de52798f0345801b667977c79",
"version-string": "4.7.4",
"port-version": 2
},
{
"git-tree": "725a87fc08fed5789a9a4a3308b2a80f4906a400",
"version-string": "4.7.4",