replace own inline cmake include search logic for a typical FindXXX.cmake module.
[blender-staging.git] / build_files / cmake / macros.cmake
index 8189769cbbcf38af3c4a493e9ca76fc829b3a786..a862034c002c290881993b9514f020a8dd5560e9 100644 (file)
@@ -205,13 +205,13 @@ macro(setup_liblinks
        endif()
        if(WITH_IMAGE_OPENEXR)
                if(WIN32 AND NOT UNIX)
-                       foreach(_LOOP_VAR ${OPENEXR_LIB})
+                       foreach(_LOOP_VAR ${OPENEXR_LIBRARIES})
                                target_link_libraries(${target} debug ${_LOOP_VAR}_d)
                                target_link_libraries(${target} optimized ${_LOOP_VAR})
                        endforeach()
                        unset(_LOOP_VAR)
                else()
-                       target_link_libraries(${target} ${OPENEXR_LIB})
+                       target_link_libraries(${target} ${OPENEXR_LIBRARIES})
                endif()
        endif()
        if(WITH_IMAGE_OPENJPEG AND UNIX AND NOT APPLE)