Skip to content

Commit 633d5fd

Browse files
committed
cmake: rename FindXMLTO.cmake to correct warning
CMake issues the following developer warning about FindXmlTo: The package name passed to `find_package_handle_standard_args` (XMLTO) does not match the name of the calling package (XmlTo). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. This corrects that by naming it FindXMLTO.cmake. Signed-off-by: GitHub <noreply@github.com>
1 parent 22bc575 commit 633d5fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ endif()
253253

254254
if(BUILD_TOOLS)
255255
find_package(POPT REQUIRED)
256-
if(BUILD_TOOL_DOCS)
257-
find_package(XmlTo REQUIRED)
256+
if(BUILD_TOOLS_DOCS)
257+
find_package(XMLTO REQUIRED)
258258
endif()
259259
add_subdirectory(tools)
260260
endif()
File renamed without changes.

0 commit comments

Comments
 (0)