From 8eed25b469983d835748e952afeeeb9229c0a2c5 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 28 Mar 2019 20:27:38 +1100 Subject: [PATCH] [client] cmake: list enabled features in configure output --- VERSION | 2 +- client/CMakeLists.txt | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 94376650..8e0514a9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-120-g66c3c0115f+1 \ No newline at end of file +a12-121-gee09594190+1 \ No newline at end of file diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 0ead243a..4fac4033 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -5,6 +5,7 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/") include(GNUInstallDirs) include(CheckCCompilerFlag) +include(FeatureSummary) option(OPTIMIZE_FOR_NATIVE "Build with -march=native" ON) if(OPTIMIZE_FOR_NATIVE) @@ -15,8 +16,13 @@ if(OPTIMIZE_FOR_NATIVE) endif() option(ENABLE_OPENGL "Enable the OpenGL renderer" ON) +add_feature_info(ENABLE_OPENGL ENABLE_OPENGL "Legacy OpenGL renderer.") + option(ENABLE_EGL "Enable the EGL renderer" ON) +add_feature_info(ENABLE_EGL ENABLE_EGL "EGL renderer.") + option(ENABLE_CB_X11 "Enable X11 clipboard integration" ON) +add_feature_info(ENABLE_CB_X11 ENABLE_CB_X11 "X11 Clipboard Integration.") add_compile_options( "-Wall" @@ -85,3 +91,5 @@ target_link_libraries(looking-glass-client clipboards fonts ) + +feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)