Warning, /frameworks/kio/cmake/FindGem.cmake.in is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org> 0002 # 0003 # SPDX-License-Identifier: BSD-3-Clause 0004 0005 find_package(RubyExe) 0006 if(NOT RubyExe_FOUND) 0007 message(WARNING "Could not find ruby!") 0008 return() 0009 endif() 0010 0011 execute_process( 0012 COMMAND ${RubyExe_EXECUTABLE} -e "require '@GEM_NAME@'" 0013 ERROR_VARIABLE ERROR_VAR 0014 RESULT_VARIABLE RESULT_VAR 0015 ) 0016 0017 if(RESULT_VAR EQUAL 0) 0018 set(@GEM_PACKAGE@_FOUND TRUE) 0019 else() 0020 message(WARNING ${ERROR_VAR}) 0021 endif() 0022 0023 include(FindPackageHandleStandardArgs) 0024 find_package_handle_standard_args(@GEM_PACKAGE@ 0025 FOUND_VAR 0026 @GEM_PACKAGE@_FOUND 0027 REQUIRED_VARS 0028 @GEM_PACKAGE@_FOUND 0029 )