aboutsummaryrefslogtreecommitdiff
path: root/ports/libxml2/usage
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libxml2/usage')
-rw-r--r--ports/libxml2/usage5
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/libxml2/usage b/ports/libxml2/usage
index fd94c4b4e..c77cdbce5 100644
--- a/ports/libxml2/usage
+++ b/ports/libxml2/usage
@@ -1,5 +1,4 @@
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})
+ find_package(LibXml2 CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE LibXml2::LibXml2)