Skip to content

Commit

Permalink
Add OPENIMAGEIO_UTIL_LIBRARY to OpenImageIO (AcademySoftwareFoundatio…
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelsundell authored Aug 25, 2023
1 parent 00417d7 commit 77dd15b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ find_library ( OPENIMAGEIO_LIBRARY
HINTS ${OPENIMAGEIO_ROOT_DIR}/lib
PATH_SUFFIXES lib64 lib
PATHS "${OPENIMAGEIO_ROOT_DIR}/lib" )

find_library ( OPENIMAGEIO_UTIL_LIBRARY
NAMES OpenImageIO_Util${OIIO_LIBNAME_SUFFIX}
HINTS ${OPENIMAGEIO_ROOT_DIR}/lib
PATH_SUFFIXES lib64 lib
PATHS "${OPENIMAGEIO_ROOT_DIR}/lib" )

find_path ( OPENIMAGEIO_INCLUDE_DIR
NAMES OpenImageIO/imageio.h
HINTS ${OPENIMAGEIO_ROOT_DIR}/include
Expand All @@ -66,7 +73,7 @@ if (EXISTS "${OIIO_VERSION_HEADER}")
set (OPENIMAGEIO_VERSION "${OPENIMAGEIO_VERSION_MAJOR}.${OPENIMAGEIO_VERSION_MINOR}.${OPENIMAGEIO_VERSION_PATCH}")
endif ()

set ( OPENIMAGEIO_LIBRARIES ${OPENIMAGEIO_LIBRARY})
set ( OPENIMAGEIO_LIBRARIES ${OPENIMAGEIO_LIBRARY} ${OPENIMAGEIO_UTIL_LIBRARY})
get_filename_component (OPENIMAGEIO_LIBRARY_DIRS "${OPENIMAGEIO_LIBRARY}" DIRECTORY CACHE)

if (NOT OpenImageIO_FIND_QUIETLY)
Expand Down

0 comments on commit 77dd15b

Please sign in to comment.