mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-05 20:55:46 +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
@@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.5.0)
|
cmake_minimum_required(VERSION 3.12.0)
|
||||||
cmake_policy(SET CMP0048 NEW)
|
cmake_policy(SET CMP0048 NEW)
|
||||||
|
|
||||||
# Specify search path for CMake modules to be loaded by include()
|
# Specify search path for CMake modules to be loaded by include()
|
||||||
|
@@ -220,13 +220,12 @@
|
|||||||
|
|
||||||
# Search for python which is required
|
# Search for python which is required
|
||||||
if (ABIMap_FIND_REQURIED)
|
if (ABIMap_FIND_REQURIED)
|
||||||
find_package(PythonInterp REQUIRED)
|
find_package(Python REQUIRED)
|
||||||
else()
|
else()
|
||||||
find_package(PythonInterp)
|
find_package(Python)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (TARGET Python::Interpreter)
|
||||||
if (PYTHONINTERP_FOUND)
|
|
||||||
# Search for abimap tool used to generate the map files
|
# Search for abimap tool used to generate the map files
|
||||||
find_program(ABIMAP_EXECUTABLE NAMES abimap DOC "path to the abimap executable")
|
find_program(ABIMAP_EXECUTABLE NAMES abimap DOC "path to the abimap executable")
|
||||||
mark_as_advanced(ABIMAP_EXECUTABLE)
|
mark_as_advanced(ABIMAP_EXECUTABLE)
|
||||||
|
Reference in New Issue
Block a user