File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 93
93
run : sudo apt-get update -qq && sudo apt-get install -yqq --no-install-recommends ninja-build
94
94
95
95
- name : Configure
96
- run : cmake --preset="${{ matrix.configurePreset }}" -DCCMATH_DESIRED_CXX_STANDARD="cxx_std_${{ matrix.cxx_version }}"
96
+ run : cmake --preset="${{ matrix.configurePreset }}" -DCCMATH_ENABLE_AGGRESSIVE_WARNINGS=ON -DCCMATH_ENABLE_WARNINGS_AS_ERRORS=ON
97
97
98
98
- name : Build
99
99
run : cmake --build --preset="${{ matrix.buildPreset }}"
Original file line number Diff line number Diff line change 89
89
run : brew install ninja
90
90
91
91
- name : Configure
92
- run : cmake --preset="${{ matrix.configurePreset }}" -DCCMATH_DESIRED_CXX_STANDARD="cxx_std_${{ matrix.cxx_version }}"
92
+ run : cmake --preset="${{ matrix.configurePreset }}" -DCCMATH_DESIRED_CXX_STANDARD="cxx_std_${{ matrix.cxx_version }}" -DCCMATH_ENABLE_AGGRESSIVE_WARNINGS=ON -DCCMATH_ENABLE_WARNINGS_AS_ERRORS=ON
93
93
94
94
- name : Build
95
95
run : cmake --build --preset="${{ matrix.buildPreset }}"
Original file line number Diff line number Diff line change 62
62
key : ${{ runner.os }}-${{ matrix.name }}
63
63
64
64
- name : Configure
65
- run : cmake --preset="${{ matrix.configurePreset }}" -DCCMATH_DESIRED_CXX_STANDARD="cxx_std_${{ matrix.cxx_version }}"
65
+ run : cmake --preset="${{ matrix.configurePreset }}" -DCCMATH_DESIRED_CXX_STANDARD="cxx_std_${{ matrix.cxx_version }}" -DCCMATH_ENABLE_AGGRESSIVE_WARNINGS=ON -DCCMATH_ENABLE_WARNINGS_AS_ERRORS=ON
66
66
67
67
- name : Build
68
68
run : cmake --build --preset="${{ matrix.buildPreset }}"
Original file line number Diff line number Diff line change @@ -60,21 +60,19 @@ option(CCMATH_DISABLE_CMAKE_BUILTIN_CHECKS
60
60
"Disable the ability for CCMath to check for builtin functions at the CMake level"
61
61
OFF )
62
62
63
- # Project-specific development options (Only enable if we are the root project)
64
- include (CMakeDependentOption )
65
-
66
- # Enforce aggressive warnings (enabled by default for the root project)
67
- cmake_dependent_option (CCMATH_ENABLE_AGGRESSIVE_WARNINGS
68
- "Enforce extremely aggressive warnings." ON
69
- "CCMATH_PROJECT_IS_TOP_LEVEL" ON
63
+ option (CCMATH_ENABLE_AGGRESSIVE_WARNINGS
64
+ "Enforce extremely aggressive warnings."
65
+ OFF
70
66
)
71
67
72
- # Treat warnings as errors (enabled by default for the root project)
73
- cmake_dependent_option (CCMATH_ENABLE_WARNINGS_AS_ERRORS
74
- "All warnings should be treated as errors." ON
75
- "CCMATH_PROJECT_IS_TOP_LEVEL" ON
68
+ option (CCMATH_ENABLE_WARNINGS_AS_ERRORS
69
+ "All warnings should be treated as errors."
70
+ OFF
76
71
)
77
72
73
+ # Project-specific development options (Only enable if we are the root project)
74
+ include (CMakeDependentOption )
75
+
78
76
# Enable heightened debug information (disabled by default)
79
77
cmake_dependent_option (CCMATH_ENABLE_DEBUG_INFO
80
78
"Enable heightened debug information. Warning: this DOES have a performance cost." OFF
You can’t perform that action at this time.
0 commit comments