aboutsummaryrefslogtreecommitdiff
path: root/ports/bzip2
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-11-16 23:54:55 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-11-16 23:54:55 -0800
commit1b2f75be941e9eed5986c10eb99fd6049490daec (patch)
treec782bfff26daa96f0aba34ec39e74513330e6cc0 /ports/bzip2
parent468e9e70e644eb26258434c9e27e34935eb3e06d (diff)
downloadvcpkg-1b2f75be941e9eed5986c10eb99fd6049490daec.tar.gz
vcpkg-1b2f75be941e9eed5986c10eb99fd6049490daec.zip
[vcpkg] Support \share\<port>\usage to handle libraries which are found through built-in Find Modules.
Diffstat (limited to 'ports/bzip2')
-rw-r--r--ports/bzip2/portfile.cmake2
-rw-r--r--ports/bzip2/usage4
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/bzip2/portfile.cmake b/ports/bzip2/portfile.cmake
index f5823fb94..d4dd18fd5 100644
--- a/ports/bzip2/portfile.cmake
+++ b/ports/bzip2/portfile.cmake
@@ -36,3 +36,5 @@ file(WRITE ${CURRENT_PACKAGES_DIR}/include/bzlib.h "${BZLIB_H}")
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/bzip2)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/bzip2/LICENSE ${CURRENT_PACKAGES_DIR}/share/bzip2/copyright)
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
diff --git a/ports/bzip2/usage b/ports/bzip2/usage
new file mode 100644
index 000000000..084bf390a
--- /dev/null
+++ b/ports/bzip2/usage
@@ -0,0 +1,4 @@
+The package bzip2 is compatible with built-in CMake targets:
+
+ find_package(BZip2 REQUIRED)
+ target_link_libraries(main PRIVATE BZip2::BZip2)