CMake: Add public cmake option to document BUILD_LAGOM

- Making this an option makes this option visible to users and tooling.
This commit is contained in:
Brian Gianforcaro 2021-01-01 02:44:04 -08:00 committed by Andreas Kling
parent 40f671ac67
commit 43908db594
Notes: sideshowbarker 2024-07-19 00:16:43 +09:00
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ jobs:
run: | run: |
mkdir -p Build mkdir -p Build
cd Build cd Build
cmake .. -GNinja -DBUILD_LAGOM=1 -DENABLE_ALL_THE_DEBUG_MACROS=ON cmake .. -GNinja -DBUILD_LAGOM=ON -DENABLE_ALL_THE_DEBUG_MACROS=ON
# === ACTUALLY BUILD AND TEST === # === ACTUALLY BUILD AND TEST ===
@ -173,7 +173,7 @@ jobs:
run: | run: |
mkdir -p Build mkdir -p Build
cd Build cd Build
cmake .. -GNinja -DBUILD_LAGOM=1 -DENABLE_ALL_THE_DEBUG_MACROS=ON -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 cmake .. -GNinja -DBUILD_LAGOM=ON -DENABLE_ALL_THE_DEBUG_MACROS=ON -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10
# === ACTUALLY BUILD AND TEST === # === ACTUALLY BUILD AND TEST ===

View file

@ -22,6 +22,7 @@ option(ENABLE_MEMORY_SANITIZER "Enable memory sanitizer testing in gcc/clang" FA
option(ENABLE_UNDEFINED_SANITIZER "Enable undefined behavior sanitizer testing in gcc/clang" FALSE) option(ENABLE_UNDEFINED_SANITIZER "Enable undefined behavior sanitizer testing in gcc/clang" FALSE)
option(ENABLE_FUZZER_SANITIZER "Enable fuzzer sanitizer testing in clang" FALSE) option(ENABLE_FUZZER_SANITIZER "Enable fuzzer sanitizer testing in clang" FALSE)
option(ENABLE_ALL_THE_DEBUG_MACROS "Enable all debug macros to validate they still compile" FALSE) option(ENABLE_ALL_THE_DEBUG_MACROS "Enable all debug macros to validate they still compile" FALSE)
option(BUILD_LAGOM "Build parts of the system targeting the host OS for fuzzing/testing" FALSE)
add_custom_target(run add_custom_target(run
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh