diff options
Diffstat (limited to 'Tests/FindPython/FindPythonScript.cmake')
| -rw-r--r-- | Tests/FindPython/FindPythonScript.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/FindPython/FindPythonScript.cmake b/Tests/FindPython/FindPythonScript.cmake new file mode 100644 index 0000000..808496e --- /dev/null +++ b/Tests/FindPython/FindPythonScript.cmake @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.12) +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() |
