[build] Refactor CMake flags (#2788)

The CMake enable/disable flags as currently structured are a confusing mix of
WITH, WITHOUT, and USE with odd defaults.  This changes the flags to consistently
use WITH and default the build options to everything enabled.
This commit is contained in:
Prateek Machiraju
2020-10-23 00:52:24 -04:00
committed by GitHub
parent 5cdffeaba1
commit 5fe8f9017f
13 changed files with 86 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2015-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -241,7 +241,11 @@ TEST_F(ValueTest, StringArray) {
NT_DisposeValue(&cv);
}
#ifdef NDEBUG
TEST_F(ValueDeathTest, DISABLED_GetAssertions) {
#else
TEST_F(ValueDeathTest, GetAssertions) {
#endif
Value v;
ASSERT_DEATH((void)v.GetBoolean(), "type == NT_BOOLEAN");
ASSERT_DEATH((void)v.GetDouble(), "type == NT_DOUBLE");