CMake: Disable Options Depending on OpenEXR Dependecies #106209
|
@ -953,6 +953,7 @@ if(WITH_CYCLES_DEVICE_HIP)
|
|||
set(WITH_HIP_DYNLOAD ON)
|
||||
endif()
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Check if Sub-modules are Cloned
|
||||
|
||||
|
@ -1234,6 +1235,7 @@ if(WITH_METAL_BACKEND)
|
|||
# build_files/cmake/platform/platform_apple.cmake
|
||||
endif()
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Configure OpenMP
|
||||
|
||||
|
|
|
@ -120,8 +120,8 @@ UNSET(_openexr_libs_ver)
|
|||
|
||||
IF(OPENEXR_VERSION VERSION_GREATER_EQUAL "3.0.0")
|
||||
# For OpenEXR 3.x, we also need to find the now separate Imath library.
|
||||
# For simplicity we also add it to the OpenEXR includes and libraries, as it's simpler to
|
||||
# support both 2.x and 3.x this way.
|
||||
# For simplicity we also add it to the OpenEXR includes and libraries,
|
||||
# as it's simpler to support both 2.x and 3.x this way.
|
||||
|
||||
Jeroen-Bakker marked this conversation as resolved
Outdated
|
||||
# Find include directory
|
||||
FIND_PATH(IMATH_INCLUDE_DIR
|
||||
|
@ -174,7 +174,6 @@ ELSE()
|
|||
SET(IMATH_LIBRARIES ${OPENEXR_IMATH_LIBRARY})
|
||||
ENDIF()
|
||||
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set OPENEXR_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
|
Loading…
Reference in New Issue
This code only runs for OpenEXR 3, so this does not work for 2. To handle both cases: