diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-09-08 16:01:24 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-09-25 15:08:32 +0400 |
commit | 13d8671a1a71e77ca3c6b1ce3d13d200ddd778d1 (patch) | |
tree | d8a02a2b1601b5bff66d2b2a6987ecccc33e9dd1 /extern | |
parent | 058e3f087e4db827e0dcb2b8ea662fa7cdc1ff6b (diff) |
Cycles: Add support of Glog logging
This commit makes it possible to use Glog library for the debug logging.
For now only possible when using CMake and in order to use the logging
the WITH_CYCLES_LOGGING configuration variable is to be enabled.
When this option is not enabled or when using Scons there's no difference
in Cycles behavior at all, when using logging and no output to the console
impact is gonna to be minimal.
This is done in order to make it possible to have debug logging persistent
in code (without need to add it when troubleshooting some bug and removing
it afterwards).
For now actual logging is not placed yet, only all the functions needed for
the logging are written and so.
Diffstat (limited to 'extern')
-rw-r--r-- | extern/libmv/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt index d482819c2ce..6a4a61ea779 100644 --- a/extern/libmv/CMakeLists.txt +++ b/extern/libmv/CMakeLists.txt @@ -240,7 +240,7 @@ if(WITH_LIBMV) endif() # make GLog a separate target, so it can be used for gtest as well. -if(WITH_LIBMV OR WITH_GTESTS) +if(WITH_LIBMV OR WITH_GTESTS OR WITH_CYCLES_LOGGING) # We compile GLog together with GFlag so we don't worry about # adding extra lib to linker. set(GLOG_SRC |