diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 52e497a802..bda9c6c789 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |