Also, if UFC_ENABLE_PYTHON, one requires PythonLibs. You may want to replace
# Find Python library corresponding to Python interpreter find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT QUIET)
by
# Find Python library corresponding to Python interpreter if (UFC_ENABLE_PYTHON) find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT QUIET REQUIRED) else() find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT QUIET) endif()
Also, if UFC_ENABLE_PYTHON, one requires PythonLibs. You may want to replace
# Find Python library corresponding to Python interpreter PythonLibs ${PYTHON_ VERSION_ STRING} EXACT QUIET)
find_package(
by
# Find Python library corresponding to Python interpreter package( PythonLibs ${PYTHON_ VERSION_ STRING} EXACT QUIET REQUIRED) package( PythonLibs ${PYTHON_ VERSION_ STRING} EXACT QUIET)
if (UFC_ENABLE_PYTHON)
find_
else()
find_
endif()