Commit cd65c459ec6fcce5baab2d1ca186ef099d412f5c
1 parent
963c5d04
Build the tests by default.
Fixes #143. There is no reason to make the tests optional.
Showing
2 changed files
with
2 additions
and
1 deletions
CHANGELOG.md
| @@ -8,6 +8,7 @@ options. The project adheres to semantic versioning. | @@ -8,6 +8,7 @@ options. The project adheres to semantic versioning. | ||
| 8 | ### Changed | 8 | ### Changed |
| 9 | 9 | ||
| 10 | * Allow integers to have leading zeroes. | 10 | * Allow integers to have leading zeroes. |
| 11 | +* Build the tests by default. | ||
| 11 | 12 | ||
| 12 | ### Added | 13 | ### Added |
| 13 | 14 |
CMakeLists.txt
| @@ -35,7 +35,7 @@ project(cxxopts VERSION "${VERSION}") | @@ -35,7 +35,7 @@ project(cxxopts VERSION "${VERSION}") | ||
| 35 | enable_testing() | 35 | enable_testing() |
| 36 | 36 | ||
| 37 | option(CXXOPTS_BUILD_EXAMPLES "Set to ON to build examples" ON) | 37 | option(CXXOPTS_BUILD_EXAMPLES "Set to ON to build examples" ON) |
| 38 | -option(CXXOPTS_BUILD_TESTS "Set to ON to build tests" OFF) | 38 | +option(CXXOPTS_BUILD_TESTS "Set to ON to build tests" ON) |
| 39 | 39 | ||
| 40 | # request c++11 without gnu extension for the whole project and enable more warnings | 40 | # request c++11 without gnu extension for the whole project and enable more warnings |
| 41 | if (CXXOPTS_CXX_STANDARD) | 41 | if (CXXOPTS_CXX_STANDARD) |