CMake: fix building without libmv
[blender.git] / extern / ceres / CMakeLists.txt
index 7653bc4..d91e64b 100644 (file)
@@ -257,9 +257,14 @@ set(SRC
 )
 
 set(LIB
-       extern_glog
 )
 
+if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
+       list(APPEND LIB
+               extern_glog
+       )
+endif()
+
 if(WITH_LIBMV_SCHUR_SPECIALIZATIONS)
        list(APPEND SRC
                internal/ceres/generated/partitioned_matrix_view_2_2_2.cc