aboutsummaryrefslogtreecommitdiff
path: root/ports/curl
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/curl
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/curl')
-rw-r--r--ports/curl/portfile.cmake2
-rw-r--r--ports/curl/usage5
2 files changed, 7 insertions, 0 deletions
diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake
index c770d3f25..eaeba787d 100644
--- a/ports/curl/portfile.cmake
+++ b/ports/curl/portfile.cmake
@@ -73,3 +73,5 @@ endif()
file(WRITE ${CURRENT_PACKAGES_DIR}/include/curl/curl.h "${CURL_H}")
vcpkg_copy_pdbs()
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
diff --git a/ports/curl/usage b/ports/curl/usage
new file mode 100644
index 000000000..d43e7112e
--- /dev/null
+++ b/ports/curl/usage
@@ -0,0 +1,5 @@
+The package curl is compatible with built-in CMake targets:
+
+ find_package(CURL REQUIRED)
+ target_link_libraries(main PRIVATE ${CURL_LIBRARIES})
+ target_include_directories(main PRIVATE ${CURL_INCLUDE_DIRS})