From 44803a87a143c8a94d5dbc10e0942d947a12c023 Mon Sep 17 00:00:00 2001 From: ComradeCrow Date: Fri, 14 Apr 2023 21:25:55 -0700 Subject: failure to get pybind to work --- cmake/FindYtdlp.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cmake/FindYtdlp.cmake (limited to 'cmake') diff --git a/cmake/FindYtdlp.cmake b/cmake/FindYtdlp.cmake new file mode 100644 index 0000000..a1d779d --- /dev/null +++ b/cmake/FindYtdlp.cmake @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: 2021 Jonah BrĂ¼chert +# +# SPDX-License-Identifier: BSD-2-Clause + +find_package(Python3 REQUIRED COMPONENTS Interpreter) + +execute_process(COMMAND ${Python3_EXECUTABLE} -c "import yt_dlp" RESULT_VARIABLE YTDLP_CHECK_RESULT) + +if (${YTDLP_CHECK_RESULT} EQUAL 0) + set(Ytdlp_FOUND TRUE) +endif() -- cgit 1.4.1-2-gfad0