aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-10 20:20:18 +0100
committerGitHub <noreply@github.com>2023-02-10 20:20:18 +0100
commit4c64cbe99f2616a1d1126257da8d40773f4adba1 (patch)
tree9cb3f4fc6637870f557b04e6cfc1a0d35d154a2b /src
parent84328bae08e0694c2409b1506116275770830745 (diff)
downloadrneovim-4c64cbe99f2616a1d1126257da8d40773f4adba1.tar.gz
rneovim-4c64cbe99f2616a1d1126257da8d40773f4adba1.tar.bz2
rneovim-4c64cbe99f2616a1d1126257da8d40773f4adba1.zip
build: mark uninteresting variables as advanced (#22208)
Only the most important variables should be shown by default.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nvim/CMakeLists.txt6
-rw-r--r--src/nvim/po/CMakeLists.txt11
2 files changed, 11 insertions, 6 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 52bafffefe..5953dd3ab9 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -252,11 +252,11 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_compile_definitions(main_lib INTERFACE _GNU_SOURCE)
endif()
-option(USE_GCOV "Enable gcov support" OFF)
-if(USE_GCOV)
+option(ENABLE_GCOV "Enable gcov support" OFF)
+if(ENABLE_GCOV)
if(CLANG_TSAN)
# GCOV and TSAN results in false data race reports
- message(FATAL_ERROR "USE_GCOV cannot be used with CLANG_TSAN")
+ message(FATAL_ERROR "ENABLE_GCOV cannot be used with CLANG_TSAN")
endif()
message(STATUS "Enabling gcov support")
target_compile_options(main_lib INTERFACE --coverage)
diff --git a/src/nvim/po/CMakeLists.txt b/src/nvim/po/CMakeLists.txt
index a5a3c135d3..74f043fe03 100644
--- a/src/nvim/po/CMakeLists.txt
+++ b/src/nvim/po/CMakeLists.txt
@@ -1,9 +1,14 @@
find_package(Gettext REQUIRED)
find_program(XGETTEXT_PRG xgettext)
find_program(ICONV_PRG iconv)
-
-option(LANGUAGES "Localizations to build")
-if(NOT LANGUAGES)
+mark_as_advanced(
+ GETTEXT_MSGFMT_EXECUTABLE
+ GETTEXT_MSGMERGE_EXECUTABLE
+ ICONV_PRG
+ XGETTEXT_PRG)
+
+option(ENABLE_LANGUAGES "Localizations to build" ON)
+if(ENABLE_LANGUAGES)
set(LANGUAGES
af
ca