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:
committed by
Jakub Jelen
parent
fbfc9b3595
commit
ff111a4a8b
@ -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)
|
||||
|
Reference in New Issue
Block a user