Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow choice of specific python release (#1410)
* Allow choice of specific python release If you're building on a system with multiple versions of Python available, it can be very hard to make OCIO build against a specific version. In particular, https://cmake.org/cmake/help/latest/module/FindPython.html explains that FindPython looks preferably for version 3 of Python. Signed-off-by: Larry Gritz <lg@larrygritz.com> * Amendments based on review comments: * Rename OCIO_PREFERRED_PYTHON_VERSION -> OCIO_PYTHON_VERSION. * Move the cached variable to the top level CMakeLists.txt instead of in FindExtPackages.cmake. * Warning if OCIO_PYTHON_VERSION is set but OCIO_BUILD_PYTHON is off. Signed-off-by: Larry Gritz <lg@larrygritz.com> Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com>
- Loading branch information