forked from osmocom/wireshark
CMake: Fix build without LibXml2
This is still needed when LibXml2 is missing, otherwise the build fails with: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Fixes: v2.9.1rc0-625-gd17e218918 ("CMake: Update FindLibXml2.cmake") Change-Id: I06fc2c18aa82dd553d5a10604c1a874c9a2e88a8 Reviewed-on: https://code.wireshark.org/review/31896 Reviewed-by: João Valverde <j@v6e.pt> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
bf820d14eb
commit
af3c6115f2
|
@ -1097,6 +1097,14 @@ ws_find_package(SPANDSP ENABLE_SPANDSP HAVE_SPANDSP)
|
|||
ws_find_package(BCG729 ENABLE_BCG729 HAVE_BCG729)
|
||||
|
||||
ws_find_package(LibXml2 ENABLE_LIBXML2 HAVE_LIBXML2)
|
||||
if(NOT LIBXML2_FOUND)
|
||||
# CMake 3.9 and below used LIBXML2_LIBRARIES as the name of
|
||||
# the cache entry storing the find_library result.
|
||||
# Current CMake (3.13) and below sets LIBXML2_LIBRARIES and LIBXML2_INCLUDE_DIRS
|
||||
# to a non-empty value, be sure to clear it when not found.
|
||||
set(LIBXML2_LIBRARIES "")
|
||||
set(LIBXML2_INCLUDE_DIRS "")
|
||||
endif()
|
||||
|
||||
# Capabilities
|
||||
ws_find_package(CAP ENABLE_CAP HAVE_LIBCAP)
|
||||
|
|
Loading…
Reference in New Issue