cmake: added FindOpenJPEG module.
[blender.git] / build_files / cmake / macros.cmake
index 5e2db8edc4730e020d789ba9f7069fbaf2244fb4..bb3761d45396d26fcd541a09df07bf71c97daf94 100644 (file)
@@ -266,7 +266,7 @@ macro(setup_liblinks
                endif()
        endif()
        if(WITH_IMAGE_OPENJPEG AND UNIX AND NOT APPLE)
-               target_link_libraries(${target} ${OPENJPEG_LIB})
+               target_link_libraries(${target} ${OPENJPEG_LIBRARIES})
        endif()
        if(WITH_CODEC_FFMPEG)
                target_link_libraries(${target} ${FFMPEG_LIBRARIES})