Warning, /plasma-mobile/audiotube/cmake/FindYtdlp.cmake is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2021 Jonah BrĂ¼chert <jbb@kaidan.im>
0002 #
0003 # SPDX-License-Identifier: BSD-2-Clause
0004 
0005 find_package(Python3 REQUIRED COMPONENTS Interpreter)
0006 
0007 execute_process(COMMAND ${Python3_EXECUTABLE} -c "import yt_dlp" RESULT_VARIABLE YTDLP_CHECK_RESULT)
0008 
0009 if (${YTDLP_CHECK_RESULT} EQUAL 0)
0010         set(Ytdlp_FOUND TRUE)
0011 endif()