CMake: Add option to link against system-wide Gflags library
[blender.git] / intern / libmv / CMakeLists.txt
index cd89f1d84b57e8f23053bd372fca99bf370cc1f8..b67a23b415929b411550ed03f2a0008f268fafb6 100644 (file)
@@ -41,9 +41,10 @@ if(WITH_LIBMV)
        add_definitions(${GFLAGS_DEFINES})
        add_definitions(${GLOG_DEFINES})
        add_definitions(${CERES_DEFINES})
+       add_definitions(-DLIBMV_GFLAGS_NAMESPACE=${GFLAGS_NAMESPACE})
 
        list(APPEND INC
-               ../../extern/gflags/src
+               ${GFLAGS_INCLUDE_DIRS}
                ../../extern/glog/src
                ../../extern/ceres/include
                ../../extern/ceres/config