Warning, /sdk/selenium-webdriver-at-spi/cmake/ProgramFinder.cmake is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: BSD-2-Clause 0002 # SPDX-FileCopyrightText: 2021 Harald Sitter <sitter@kde.org> 0003 0004 # Finds a random program as cmake package. Useful to find runtime deps. 0005 # Excess call arguments are passed to the internal find_program() call. 0006 # 0007 # $package_FOUND - true if found 0008 # $package_PATH - path to the bin (only when found) 0009 macro(program_finder program) 0010 find_program(${CMAKE_FIND_PACKAGE_NAME}_PATH ${program} ${ARGN}) 0011 0012 include(FindPackageHandleStandardArgs) 0013 find_package_handle_standard_args(${CMAKE_FIND_PACKAGE_NAME} 0014 FOUND_VAR ${CMAKE_FIND_PACKAGE_NAME}_FOUND 0015 REQUIRED_VARS ${CMAKE_FIND_PACKAGE_NAME}_PATH 0016 ) 0017 mark_as_advanced(${CMAKE_FIND_PACKAGE_NAME}_PATH) 0018 endmacro()