1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-01 11:26:52 +03:00

cmake: Use Python find_package

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2024-02-15 13:58:58 +01:00
committed by Jakub Jelen
parent fbfc9b3595
commit ff111a4a8b
2 changed files with 4 additions and 5 deletions

View File

@ -220,13 +220,12 @@
# Search for python which is required
if (ABIMap_FIND_REQURIED)
find_package(PythonInterp REQUIRED)
find_package(Python REQUIRED)
else()
find_package(PythonInterp)
find_package(Python)
endif()
if (PYTHONINTERP_FOUND)
if (TARGET Python::Interpreter)
# Search for abimap tool used to generate the map files
find_program(ABIMAP_EXECUTABLE NAMES abimap DOC "path to the abimap executable")
mark_as_advanced(ABIMAP_EXECUTABLE)