Warning, /network/kaccounts-providers/cmake/modules/FindIntltool.cmake is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2013 Valama development team
0002 # SPDX-License-Identifier: GPL-3.0-or-later
0003 
0004 find_program(INTLTOOL_EXTRACT_EXECUTABLE intltool-extract)
0005 find_program(INTLTOOL_MERGE_EXECUTABLE intltool-merge)
0006 mark_as_advanced(INTLTOOL_EXTRACT_EXECUTABLE)
0007 mark_as_advanced(INTLTOOL_MERGE_EXECUTABLE)
0008 
0009 if(INTLTOOL_EXTRACT_EXECUTABLE)
0010   execute_process(
0011     COMMAND
0012       ${INTLTOOL_EXTRACT_EXECUTABLE} "--version"
0013     OUTPUT_VARIABLE
0014       intltool_version
0015     ERROR_QUIET
0016     OUTPUT_STRIP_TRAILING_WHITESPACE
0017   )
0018   if(intltool_version MATCHES "^intltool-extract \\(.*\\) [0-9]")
0019     string(REGEX REPLACE "^intltool-extract \\([^\\)]*\\) ([0-9\\.]+[^ \n]*).*" "\\1" INTLTOOL_VERSION_STRING "${intltool_version}")
0020   endif()
0021   unset(intltool_version)
0022 endif()
0023 
0024 include(FindPackageHandleStandardArgs)
0025 find_package_handle_standard_args(Intltool
0026   REQUIRED_VARS
0027     INTLTOOL_EXTRACT_EXECUTABLE
0028     INTLTOOL_MERGE_EXECUTABLE
0029   VERSION_VAR
0030     INTLTOOL_VERSION_STRING
0031 )
0032 
0033 set(INTLTOOL_OPTIONS_DEFAULT
0034   "--quiet"
0035 )