1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 05:26:58 +08:00

FindPython: add Python_FIND_ABI hint.

This variable will enable to specify will ABIs will be searched.
This commit is contained in:
Marc Chevrier
2019-06-05 13:08:52 +02:00
parent 512013e276
commit 9201908ca5
7 changed files with 424 additions and 100 deletions

View File

@@ -1 +1,9 @@
find_package(${PYTHON_PACKAGE_NAME} REQUIRED QUIET)
if (PYTHON_MUST_NOT_BE_FOUND)
find_package(${PYTHON_PACKAGE_NAME} QUIET)
if (${PYTHON_PACKAGE_NAME}_FOUND)
message(FATAL_ERROR "${PYTHON_PACKAGE_NAME}: unexpectedly founded.")
endif()
else()
find_package(${PYTHON_PACKAGE_NAME} REQUIRED QUIET)
endif()