diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-06-05 11:08:52 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-06-24 10:00:21 (GMT) |
commit | 9201908ca5c10a6142c0558401445320773f1f1e (patch) | |
tree | 8f1889628d8c87e50d259931b08a40596bbd92a0 /Tests/FindPython/FindPythonScript.cmake | |
parent | 512013e276e66551c19c12af01336f96c26965a5 (diff) | |
download | CMake-9201908ca5c10a6142c0558401445320773f1f1e.zip CMake-9201908ca5c10a6142c0558401445320773f1f1e.tar.gz CMake-9201908ca5c10a6142c0558401445320773f1f1e.tar.bz2 |
FindPython: add Python_FIND_ABI hint.
This variable will enable to specify will ABIs will be searched.
Diffstat (limited to 'Tests/FindPython/FindPythonScript.cmake')
-rw-r--r-- | Tests/FindPython/FindPythonScript.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/FindPython/FindPythonScript.cmake b/Tests/FindPython/FindPythonScript.cmake index 9450092..bc7e0d1 100644 --- a/Tests/FindPython/FindPythonScript.cmake +++ b/Tests/FindPython/FindPythonScript.cmake @@ -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() |