mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-09 04:58:16 +03:00
Set LIBXML2_FOUND if it has been properly configured
This commit is contained in:
parent
d7d300ba04
commit
df098e3bf6
@ -6,6 +6,7 @@
|
||||
#
|
||||
# ::
|
||||
#
|
||||
# LIBXML2_FOUND - True if libxml2 headers and libraries were found
|
||||
# LIBXML2_INCLUDE_DIR - Directory where LibXml2 headers are located.
|
||||
# LIBXML2_INCLUDE_DIRS - list of the include directories needed to use LibXml2.
|
||||
# LIBXML2_LIBRARY - path to the LibXml2 library.
|
||||
@ -121,6 +122,10 @@ set(LIBXML2_MODULES @WITH_MODULES@)
|
||||
|
||||
mark_as_advanced(LIBXML2_LIBRARY LIBXML2_XMLCATALOG_EXECUTABLE LIBXML2_XMLLINT_EXECUTABLE)
|
||||
|
||||
if(DEFINED LIBXML2_LIBRARY AND DEFINED LIBXML2_INCLUDE_DIRS)
|
||||
set(LIBXML2_FOUND TRUE)
|
||||
endif()
|
||||
|
||||
if(NOT TARGET LibXml2::LibXml2 AND DEFINED LIBXML2_LIBRARY AND DEFINED LIBXML2_INCLUDE_DIRS)
|
||||
add_library(LibXml2::LibXml2 UNKNOWN IMPORTED)
|
||||
set_target_properties(LibXml2::LibXml2 PROPERTIES IMPORTED_LOCATION "${LIBXML2_LIBRARY}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user