You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/FindPython/FindPythonScript.cmake

10 lines
264 B

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()