Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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> Co-authored-by: Larry Gritz <lg@larrygritz.com> Co-authored-by: doug-walker <43830961+doug-walker@users.noreply.github.com>
- Loading branch information