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