Skip to content

Commit 06bf7e5

Browse files
authored
Add proper help and default values for a number of the options (#686)
1 parent f672da6 commit 06bf7e5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmake/sanitizers.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
include_guard()
22

3-
option(ENABLE_ADDRESS_SANITIZER OFF)
4-
option(ENABLE_UB_SANITIZER OFF)
5-
option(ENABLE_LEAK_SANITIZER OFF)
3+
option(ENABLE_ADDRESS_SANITIZER "Enable -fsanitize=address" OFF)
4+
option(ENABLE_UB_SANITIZER "Enable -fsanitize=undefined" OFF)
5+
option(ENABLE_LEAK_SANITIZER "Enable -fsanitize=leak" OFF)
66
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
77
if(ENABLE_ADDRESS_SANITIZER)
88
add_compile_options(-fsanitize=address -fno-omit-frame-pointer)

cmake/scoreboard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include_guard()
22

3-
option(USE_SCOREBOARD OFF)
3+
option(USE_SCOREBOARD "Enable scoreboard generation" OFF)
44
if(USE_SCOREBOARD)
55
find_package(Python REQUIRED COMPONENTS Interpreter)
66
endif(USE_SCOREBOARD)

cmake/sphinx.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include_guard()
22

3-
option(USE_DOCS OFF)
3+
option(USE_DOCS "Build Sphinx documentation" OFF)
44
if(USE_DOCS)
55
set(SPHINXBUILD "sphinx-build")
66
set(SPHINXINTL "sphinx-intl")

0 commit comments

Comments
 (0)