Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,15 @@ SET(LIBFREENECT2_DLLS
${LibUSB_DLL}
)

OPTION(ENABLE_VIDEOTOOLBOX "Enable VideoToolbox RGB decoder (crashes on Apple Silicon / M1+, use OFF to force TurboJPEG)" ON)

SET(HAVE_VideoToolbox "no (Apple only)")
IF(APPLE)
FIND_LIBRARY(VIDEOTOOLBOX_LIBRARY VideoToolbox)
IF(ENABLE_VIDEOTOOLBOX)
FIND_LIBRARY(VIDEOTOOLBOX_LIBRARY VideoToolbox)
ELSE()
MESSAGE(STATUS "VideoToolbox disabled by ENABLE_VIDEOTOOLBOX=OFF — using TurboJPEG for RGB (required on Apple Silicon / M1+)")
ENDIF()

SET(HAVE_VideoToolbox no)
IF(VIDEOTOOLBOX_LIBRARY)
Expand Down