CMake: Add option to link against system-wide Gflags library
[blender.git] / tests / gtests / CMakeLists.txt
index ad77b1389f625cef1ee0bcfdb399a219278681ee..781da7bf45241dd951587ef752651ced771a6d2b 100644 (file)
@@ -6,6 +6,7 @@ if(WITH_GTESTS)
 
        add_definitions(${GFLAGS_DEFINES})
        add_definitions(${GLOG_DEFINES})
+       add_definitions(-DBLENDER_GFLAGS_NAMESPACE=${GFLAGS_NAMESPACE})
 
        # Otherwise we get warnings here that we cant fix in external projects
        remove_strict_flags()