Fix possible compilation error with OIIO enabled

OIIO library has plugin API which uses dlopen()/dlclose() so need to
link OIO libraries against dl library.
This commit is contained in:
Sergey Sharybin 2016-10-25 09:28:25 +02:00
parent 10a25b655a
commit d2fe875f8c
1 changed files with 1 additions and 0 deletions

View File

@ -298,6 +298,7 @@ if(WITH_OPENIMAGEIO)
${JPEG_LIBRARIES}
${ZLIB_LIBRARIES}
${BOOST_LIBRARIES}
${CMAKE_DL_LIBS}
)
set(OPENIMAGEIO_LIBPATH) # TODO, remove and reference the absolute path everywhere
set(OPENIMAGEIO_DEFINITIONS "")