replace own inline cmake include search logic for a typical FindXXX.cmake module.
[blender-staging.git] / source / blender / imbuf / intern / openexr / CMakeLists.txt
index c1140bc59a97a0c0d99f7e6b6839d409928cbebc..9ca4dff5bc851917692dbae7d324c06e87856072 100644 (file)
@@ -44,7 +44,7 @@ set(SRC
 )
 
 if(WITH_IMAGE_OPENEXR)
-       list(APPEND INC_SYS ${OPENEXR_INC})
+       list(APPEND INC_SYS ${OPENEXR_INCLUDE_DIRS})
        add_definitions(-DWITH_OPENEXR)
 endif()