Commit: d2fe875f8c9d7cbe8edd0bd71dac1a7b16945613
Author: Sergey Sharybin
Date:   Tue Oct 25 09:28:25 2016 +0200
Branches: master
https://developer.blender.org/rBd2fe875f8c9d7cbe8edd0bd71dac1a7b16945613

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.

===================================================================

M       build_files/cmake/platform/platform_unix.cmake

===================================================================

diff --git a/build_files/cmake/platform/platform_unix.cmake 
b/build_files/cmake/platform/platform_unix.cmake
index e33141f..62f44cf 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -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 "")

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to