diff options
| author | Wimok Nupphiboon <wimok.mok@gmail.com> | 2018-04-22 20:35:52 +0700 |
|---|---|---|
| committer | Wimok Nupphiboon <wimok.mok@gmail.com> | 2018-04-22 20:35:52 +0700 |
| commit | befd3c6be2db90e5bc3a7acb2b0103cb6dfd7b42 (patch) | |
| tree | fd4cfee016003e6be2898ac5d37f679a567cad76 /ports/libxml2 | |
| parent | 4c028691c7f03335f6fb8a38ce80794c213819cb (diff) | |
| parent | 4f52f53b99f6a5465157958bc99f79cc0b2712ad (diff) | |
| download | vcpkg-befd3c6be2db90e5bc3a7acb2b0103cb6dfd7b42.tar.gz vcpkg-befd3c6be2db90e5bc3a7acb2b0103cb6dfd7b42.zip | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'ports/libxml2')
| -rw-r--r-- | ports/libxml2/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/libxml2/usage | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/libxml2/portfile.cmake b/ports/libxml2/portfile.cmake index cdf10496e..d55d4052d 100644 --- a/ports/libxml2/portfile.cmake +++ b/ports/libxml2/portfile.cmake @@ -19,7 +19,7 @@ vcpkg_configure_cmake( vcpkg_install_cmake() # Handle copyright -file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxml2) +file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxml2) file(RENAME ${CURRENT_PACKAGES_DIR}/share/libxml2/COPYING ${CURRENT_PACKAGES_DIR}/share/libxml2/copyright) vcpkg_copy_pdbs() diff --git a/ports/libxml2/usage b/ports/libxml2/usage new file mode 100644 index 000000000..fd94c4b4e --- /dev/null +++ b/ports/libxml2/usage @@ -0,0 +1,5 @@ +The package libxml2 is compatible with built-in CMake targets:
+
+ find_package(LibXml2 REQUIRED)
+ target_include_directories(main PRIVATE ${LIBXML2_INCLUDE_DIR})
+ target_link_libraries(main PRIVATE ${LIBXML2_LIBRARIES})
|
