mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
build: mark uninteresting variables as advanced (#22208)
Only the most important variables should be shown by default.
This commit is contained in:
@@ -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)
|
||||
|
@@ -1,9 +1,14 @@
|
||||
find_package(Gettext REQUIRED)
|
||||
find_program(XGETTEXT_PRG xgettext)
|
||||
find_program(ICONV_PRG iconv)
|
||||
mark_as_advanced(
|
||||
GETTEXT_MSGFMT_EXECUTABLE
|
||||
GETTEXT_MSGMERGE_EXECUTABLE
|
||||
ICONV_PRG
|
||||
XGETTEXT_PRG)
|
||||
|
||||
option(LANGUAGES "Localizations to build")
|
||||
if(NOT LANGUAGES)
|
||||
option(ENABLE_LANGUAGES "Localizations to build" ON)
|
||||
if(ENABLE_LANGUAGES)
|
||||
set(LANGUAGES
|
||||
af
|
||||
ca
|
||||
|
Reference in New Issue
Block a user