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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user