CMake: fix building without libmv
[blender.git] / intern / libmv / bundle.sh
index ca7f22a..0c28a1c 100755 (executable)
@@ -113,8 +113,7 @@ set(SRC
 )
 
 set(LIB
-       extern_ceres
-       extern_glog
+
 )
 
 if(WITH_LIBMV)
@@ -137,6 +136,11 @@ if(WITH_LIBMV)
                \${ZLIB_INCLUDE_DIRS}
        )
 
+       list(APPEND LIB
+               extern_ceres
+               extern_glog
+       )
+
        add_definitions(
                -DWITH_LIBMV_GUARDED_ALLOC
                -DLIBMV_NO_FAST_DETECTOR=