diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cfa601..f79807c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -475,7 +475,8 @@ endif() if(OCIO_BUILD_APPS AND (OCIO_BUILD_STATIC OR OCIO_BUILD_SHARED) ) # Try to find OpenImageIO (OIIO) and OpenGL stuff - OCIOFindOpenImageIO() + find_package(OpenImageIO CONFIG REQUIRED) + set(OIIO_LIBRARIES OpenImageIO::OpenImageIO OpenImageIO::OpenImageIO_Util) if(OIIO_FOUND) add_subdirectory(src/apps/ocioconvert)