CMake: Add option to link against system-wide Gflags library
[blender.git] / intern / cycles / app / CMakeLists.txt
index aabb8f63640eebf6eddf9d6cc93ebd1471d91f1b..231ef58f7aea52aa0e03088c1d6f0ea75bcee52e 100644 (file)
@@ -45,7 +45,7 @@ if(CYCLES_STANDALONE_REPOSITORY)
 else()
        list(APPEND LIBRARIES bf_intern_glew_mx bf_intern_guardedalloc)
        if(WITH_CYCLES_LOGGING)
-               list(APPEND LIBRARIES extern_glog extern_gflags)
+               list(APPEND LIBRARIES extern_glog ${GFLAGS_LIBRARIES})
        endif()
 endif()