aboutsummaryrefslogtreecommitdiff
path: root/ports/openssl
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/openssl
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/openssl')
-rw-r--r--ports/openssl/portfile-uwp.cmake2
-rw-r--r--ports/openssl/portfile.cmake2
-rw-r--r--ports/openssl/usage4
3 files changed, 8 insertions, 0 deletions
diff --git a/ports/openssl/portfile-uwp.cmake b/ports/openssl/portfile-uwp.cmake
index 4f83f2eed..0331e0f77 100644
--- a/ports/openssl/portfile-uwp.cmake
+++ b/ports/openssl/portfile-uwp.cmake
@@ -90,3 +90,5 @@ file(INSTALL
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openssl RENAME copyright)
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
diff --git a/ports/openssl/portfile.cmake b/ports/openssl/portfile.cmake
index 5f1b39bc7..1a856e17d 100644
--- a/ports/openssl/portfile.cmake
+++ b/ports/openssl/portfile.cmake
@@ -145,3 +145,5 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
endif()
vcpkg_copy_pdbs()
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
diff --git a/ports/openssl/usage b/ports/openssl/usage
new file mode 100644
index 000000000..f535cb6a4
--- /dev/null
+++ b/ports/openssl/usage
@@ -0,0 +1,4 @@
+The package openssl is compatible with built-in CMake targets:
+
+ find_package(OpenSSL REQUIRED)
+ target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)