diff options
author | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-14 21:25:55 -0700 |
---|---|---|
committer | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-14 21:25:55 -0700 |
commit | 44803a87a143c8a94d5dbc10e0942d947a12c023 (patch) | |
tree | e164c2415635444e26e8f852ec48b238fcf08be3 /cmake | |
parent | 87d0da3a93b7f596ecfd62886efb2f1d965be0dd (diff) | |
download | ytcpp-44803a87a143c8a94d5dbc10e0942d947a12c023.tar.gz |
failure to get pybind to work
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindYtdlp.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
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 <jbb@kaidan.im> +# +# 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() |