Skip to content

Commit 5c3ebf1

Browse files
Add python hint for OIIO even if we dont want it
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
1 parent 9a21873 commit 5c3ebf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/dependencies/oiio.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ LIST(APPEND _byproducts ${_byprojects_copy})
4848
# The '_configure_options' list gets reset and initialized in 'RV_CREATE_STANDARD_DEPS_VARIABLES'
4949
LIST(APPEND _configure_options "-DBUILD_TESTING=OFF")
5050
LIST(APPEND _configure_options "-DUSE_PYTHON=0") # this on would requireextra pybind11 package
51+
# OIIO 3.x still calls find_package(Python3) even with USE_PYTHON=0. Point it to our custom Python
52+
# to prevent finding the system Python (e.g. 3.14 from GitHub runner toolcache).
53+
LIST(APPEND _configure_options "-DPython3_ROOT_DIR=${RV_DEPS_BASE_DIR}/RV_DEPS_PYTHON3/install")
54+
LIST(APPEND _configure_options "-DPython3_FIND_STRATEGY=LOCATION")
55+
LIST(APPEND _configure_options "-DPython3_FIND_REGISTRY=NEVER")
5156
LIST(APPEND _configure_options "-DUSE_OCIO=ON")
5257
LIST(APPEND _configure_options "-DOpenColorIO_ROOT=${RV_DEPS_OCIO_ROOT_DIR}")
5358
IF(RHEL_VERBOSE)

0 commit comments

Comments
 (0)