svn merge ^/trunk/blender -r48415:48469
[blender.git] / source / creator / CMakeLists.txt
index 2cc13224d6440457fa2e067921e33de4e391c1d3..14305721f859d4f4fe08c264e4da2ff6a07bee93 100644 (file)
@@ -912,12 +912,16 @@ endif()
                cycles_kernel
                cycles_util
                cycles_subd
                cycles_kernel
                cycles_util
                cycles_subd
-               bf_compositor #added for opencl compositor
-               bf_opencl #added for opencl compositor
                bf_intern_raskter
                bf_intern_opencolorio
        )
 
                bf_intern_raskter
                bf_intern_opencolorio
        )
 
+       if(WITH_COMPOSITOR)
+               #added for opencl compositor
+               list(APPEND BLENDER_SORTED_LIBS bf_compositor)
+               list(APPEND BLENDER_SORTED_LIBS bf_opencl)
+       endif()
+
        if(WITH_LIBMV)
                list(APPEND BLENDER_SORTED_LIBS extern_libmv)
                list(APPEND BLENDER_SORTED_LIBS extern_ceres)
        if(WITH_LIBMV)
                list(APPEND BLENDER_SORTED_LIBS extern_libmv)
                list(APPEND BLENDER_SORTED_LIBS extern_ceres)