consistent capitalization for LibXml2

Fixes the following warning:

-- Found LibXml2: /usr/lib64/libxml2.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (LibXml2)
  does not match the name of the calling package (Libxml2).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindLibxml2.cmake:25 (find_package_handle_standard_args)
  CMakeLists.txt:48 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
This commit is contained in:
Hin-Tak Leung 2020-04-24 23:01:33 +01:00
parent f61d9f19d7
commit f6fa8cdf08
2 changed files with 2 additions and 2 deletions

View File

@ -43,9 +43,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
add_definitions(-D_FILE_OFFSET_BITS=64)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -ggdb -O0")
include(FindLibxml2)
include(FindLibXml2)
find_package(Libxml2 REQUIRED)
find_package(LibXml2 REQUIRED)
include_directories(${LIBXML2_INCLUDE_DIR})
if (WITH_TESTS)