diff options
| author | Phoebe <925731795@qq.com> | 2019-10-31 04:47:40 +0800 |
|---|---|---|
| committer | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-10-30 13:47:40 -0700 |
| commit | 628e795c6ae4f856cc76ae0842339b2f3b8eedf2 (patch) | |
| tree | eea8bfea3cfef4bea525449ba40894d43db02c34 | |
| parent | 00a29c6879db2981093b73fa7006c9d07fb2f861 (diff) | |
| download | vcpkg-628e795c6ae4f856cc76ae0842339b2f3b8eedf2.tar.gz vcpkg-628e795c6ae4f856cc76ae0842339b2f3b8eedf2.zip | |
[netcdf-c] Add usage (#8398)
* [netcdf-c] Add usage
* Update changes
| -rw-r--r-- | ports/netcdf-c/CONTROL | 2 | ||||
| -rw-r--r-- | ports/netcdf-c/portfile.cmake | 9 | ||||
| -rw-r--r-- | ports/netcdf-c/usage | 4 |
3 files changed, 7 insertions, 8 deletions
diff --git a/ports/netcdf-c/CONTROL b/ports/netcdf-c/CONTROL index f69dc61ad..a918e9020 100644 --- a/ports/netcdf-c/CONTROL +++ b/ports/netcdf-c/CONTROL @@ -1,5 +1,5 @@ Source: netcdf-c -Version: 4.7.0-4 +Version: 4.7.0-5 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. diff --git a/ports/netcdf-c/portfile.cmake b/ports/netcdf-c/portfile.cmake index 21b214524..f3a80ee48 100644 --- a/ports/netcdf-c/portfile.cmake +++ b/ports/netcdf-c/portfile.cmake @@ -53,10 +53,5 @@ endif() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) -# Handle copyright -file(COPY ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/netcdf-c) -file( - RENAME - ${CURRENT_PACKAGES_DIR}/share/netcdf-c/COPYRIGHT - ${CURRENT_PACKAGES_DIR}/share/netcdf-c/copyright -) +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) diff --git a/ports/netcdf-c/usage b/ports/netcdf-c/usage new file mode 100644 index 000000000..98824b337 --- /dev/null +++ b/ports/netcdf-c/usage @@ -0,0 +1,4 @@ +The package netcdf-c provides CMake targets:
+
+ find_package(netCDF CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE netcdf)
\ No newline at end of file |
