Blame cmake/FindXmlto.cmake

Packit Service fa4841
# - Find xmlto
Packit Service fa4841
# Find the xmlto docbook xslt frontend
Packit Service fa4841
#
Packit Service fa4841
#  This module defines the following variables:
Packit Service fa4841
#     XMLTO_FOUND        - true if xmlto was found
Packit Service fa4841
#     XMLTO_EXECUTABLE   - Path to xmlto, if xmlto was found
Packit Service fa4841
#
Packit Service fa4841
Packit Service fa4841
#=============================================================================
Packit Service fa4841
# Copyright 2011 Nils Andresen <nils@nils-andresen.de>
Packit Service fa4841
#
Packit Service fa4841
# Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
# you may not use this file except in compliance with the License.
Packit Service fa4841
# You may obtain a copy of the License at
Packit Service fa4841
#
Packit Service fa4841
#     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
#
Packit Service fa4841
# Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
# distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
# See the License for the specific language governing permissions and
Packit Service fa4841
# limitations under the License.
Packit Service fa4841
#=============================================================================
Packit Service fa4841
set(XMLTO_FOUND false)
Packit Service fa4841
Packit Service fa4841
find_program(XMLTO_EXECUTABLE
Packit Service fa4841
	NAMES xmlto
Packit Service fa4841
	DOC   "docbook xslt frontend")
Packit Service fa4841
Packit Service fa4841
if(XMLTO_EXECUTABLE)
Packit Service fa4841
	set(XMLTO_FOUND true)
Packit Service fa4841
	message(STATUS "Found XMLTO: ${XMLTO_EXECUTABLE}")
Packit Service fa4841
endif()
Packit Service fa4841
Packit Service fa4841
mark_as_advanced(XMLTO_EXECUTABLE)