Merge branch 'blender2.7'
[blender.git] / intern / cycles / app / CMakeLists.txt
index 689b8bc..554c3c2 100644 (file)
@@ -60,6 +60,10 @@ link_directories(${OPENIMAGEIO_LIBPATH}
                  ${TIFF_LIBPATH}
                  ${OPENEXR_LIBPATH})
 
+if(WITH_OPENCOLORIO)
+       link_directories(${OPENCOLORIO_LIBPATH})
+endif()
+
 add_definitions(${GL_DEFINITIONS})
 
 include_directories(${INC})
@@ -84,7 +88,6 @@ macro(cycles_target_link_libraries target)
                target_link_libraries(${target} ${OPENSUBDIV_LIBRARIES})
        endif()
        if(WITH_OPENCOLORIO)
-               link_directories(${OPENCOLORIO_LIBPATH})
                target_link_libraries(${target} ${OPENCOLORIO_LIBRARIES})
        endif()
        target_link_libraries(