From 299471f23e2965740fd581c02a74d1f8319c1797 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 14 Jun 2023 20:37:14 +0100 Subject: [PATCH] cmake: Only enable color logging on Linux The define was only used on Linux anyways, and with the following refactor the code looks better we can test just this define. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd4397f00..32979e2ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -282,7 +282,7 @@ option_with_deps(XRT_MODULE_MONADO_GUI "Build monado-gui" DEPENDS XRT_HAVE_SDL2) option(XRT_MODULE_AUX_VIVE "Build aux_vive" ON) # Feature configuration (sorted) -option(XRT_FEATURE_COLOR_LOG "Enable logging in color on supported platforms" ON) +option_with_deps(XRT_FEATURE_COLOR_LOG "Enable logging in color on supported platforms" DEPENDS XRT_HAVE_LINUX) option_with_deps(XRT_FEATURE_OPENXR "Build OpenXR runtime target" DEPENDS "XRT_MODULE_COMPOSITOR_MAIN OR XRT_MODULE_COMPOSITOR_NULL") set(XRT_FEATURE_OPENXR_DEBUG_UTILS OFF) # Has never been enabled option_with_deps(XRT_FEATURE_RENDERDOC "Enable RenderDoc API" DEPENDS "RT_LIBRARY OR WIN32")