Fix compilation error without Cycles logging

This commit is contained in:
Sergey Sharybin
2019-06-29 13:54:38 +02:00
parent f021635bd5
commit dd6aff71a7
4 changed files with 8 additions and 4 deletions

View File

@@ -28,13 +28,17 @@ CCL_NAMESPACE_BEGIN
static bool is_verbosity_set()
{
using CYCLES_GFLAGS_NAMESPACE::GetCommandLineOption;
#ifdef WITH_CYCLES_LOGGING
using CYCLES_GFLAGS_NAMESPACE::GetCommandLineOption;
std::string verbosity;
if (!GetCommandLineOption("v", &verbosity)) {
return false;
}
return verbosity != "0";
#else
return false;
#endif
}
void util_logging_init(const char *argv0)