build: mark uninteresting variables as advanced (#22208)

Only the most important variables should be shown by default.
This commit is contained in:
dundargoc
2023-02-10 20:20:18 +01:00
committed by GitHub
parent 84328bae08
commit 4c64cbe99f
6 changed files with 23 additions and 13 deletions

View File

@@ -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)

View File

@@ -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