From dd6aff71a7cc9bb3ef617940bb29b90d319854cb Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sat, 29 Jun 2019 13:54:38 +0200 Subject: Fix compilation error without Cycles logging --- intern/cycles/util/util_logging.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'intern') diff --git a/intern/cycles/util/util_logging.cpp b/intern/cycles/util/util_logging.cpp index 783a372e59f..cc1e328ba6d 100644 --- a/intern/cycles/util/util_logging.cpp +++ b/intern/cycles/util/util_logging.cpp @@ -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) -- cgit v1.2.3