Warning, /frameworks/kio/cmake/FindGem.cmake 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 # In this scope it's the dir we are in, in the function scope it will be the
0006 # caller's dir. So, keep our dir in a var.
0007 set(FINDGEM_MODULES_DIR ${CMAKE_CURRENT_LIST_DIR})
0008 
0009 function(find_gem GEM_NAME)
0010     set(GEM_PACKAGE "Gem_${GEM_NAME}")
0011 
0012     configure_file(${FINDGEM_MODULES_DIR}/FindGem.cmake.in Find${GEM_PACKAGE}.cmake @ONLY)
0013 
0014     set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}" ${CMAKE_MODULE_PATH})
0015     find_package(${GEM_PACKAGE} ${ARGN})
0016 
0017     set(${GEM_PACKAGE}_FOUND "${${GEM_PACKAGE}_FOUND}" PARENT_SCOPE)
0018 endfunction()