CMake: fix building without libmv
[blender.git] / extern / glog / CMakeLists.txt
index 47c5063..05a6590 100644 (file)
@@ -54,9 +54,14 @@ set(SRC
 )
 
 set(LIB
-       extern_gflags
 )
 
+if(NOT WITH_SYSTEM_GFLAGS)
+       list(APPEND LIB
+               extern_gflags
+       )
+endif()
+
 if(WIN32)
        list(APPEND SRC
                src/windows/port.cc