CMake: fix building without libmv
[blender.git] / intern / libmv / CMakeLists.txt
index b2193ae..67bf0de 100644 (file)
@@ -34,8 +34,7 @@ set(SRC
 )
 
 set(LIB
-       extern_ceres
-       extern_glog
+
 )
 
 if(WITH_LIBMV)
@@ -58,6 +57,11 @@ if(WITH_LIBMV)
                ${ZLIB_INCLUDE_DIRS}
        )
 
+       list(APPEND LIB
+               extern_ceres
+               extern_glog
+       )
+
        add_definitions(
                -DWITH_LIBMV_GUARDED_ALLOC
                -DLIBMV_NO_FAST_DETECTOR=