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