From cc89413fd1f6eb552432615a5ea80b412aad9f2e Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Tue, 17 Jul 2018 16:51:27 -0700 Subject: [PATCH] [openssl] Add usage file --- ports/openssl/portfile.cmake | 1 + ports/openssl/usage | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 ports/openssl/usage diff --git a/ports/openssl/portfile.cmake b/ports/openssl/portfile.cmake index 065116c276..3d55c367f5 100644 --- a/ports/openssl/portfile.cmake +++ b/ports/openssl/portfile.cmake @@ -1 +1,2 @@ set(VCPKG_POLICY_EMPTY_PACKAGE enabled) +file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/openssl/) diff --git a/ports/openssl/usage b/ports/openssl/usage new file mode 100644 index 0000000000..f535cb6a40 --- /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)