Skip to content

Commit e330a48

Browse files
committed
explicitly disable BUILD_TESTING
1 parent 00e535a commit e330a48

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
- name: Run CMake on ubuntu (no CLI)
155155
if: matrix.os == 'ubuntu-22.04'
156156
run: |
157-
cmake -S . -B cmake.output_nocli -G "Unix Makefiles" -DBUILD_CLI=Off
157+
cmake -S . -B cmake.output_nocli -G "Unix Makefiles" -DBUILD_TESTING=Off -DBUILD_CLI=Off
158158
159159
- name: Run CMake on ubuntu (no CLI / with tests)
160160
if: matrix.os == 'ubuntu-22.04'
@@ -169,18 +169,18 @@ jobs:
169169
- name: Run CMake on ubuntu (no CLI / with GUI)
170170
if: matrix.os == 'ubuntu-22.04'
171171
run: |
172-
cmake -S . -B cmake.output_nocli_gui -G "Unix Makefiles" -DBUILD_CLI=Off -DBUILD_GUI=On
172+
cmake -S . -B cmake.output_nocli_gui -G "Unix Makefiles" -DBUILD_TESTING=Off -DBUILD_CLI=Off -DBUILD_GUI=On
173173
174174
- name: Run CMake on ubuntu (no GUI)
175175
if: matrix.os == 'ubuntu-22.04'
176176
run: |
177-
cmake -S . -B cmake.output_nogui -G "Unix Makefiles" -DBUILD_GUI=Off
177+
cmake -S . -B cmake.output_nogui -G "Unix Makefiles" -DBUILD_TESTING=Off -DBUILD_GUI=Off
178178
179179
- name: Run CMake on ubuntu (no GUI / with triage)
180180
if: matrix.os == 'ubuntu-22.04'
181181
run: |
182182
# cannot build triage without GUI
183-
if cmake -S . -B cmake.output_nogui_triage -G "Unix Makefiles" -DBUILD_GUI=Off -DBUILD_TRIAGE=On; then
183+
if cmake -S . -B cmake.output_nogui_triage -G "Unix Makefiles" -DBUILD_TESTING=Off -DBUILD_GUI=Off -DBUILD_TRIAGE=On; then
184184
exit 1
185185
else
186186
exit 0
@@ -189,7 +189,7 @@ jobs:
189189
- name: Run CMake on ubuntu (no CLI / no GUI)
190190
if: matrix.os == 'ubuntu-22.04'
191191
run: |
192-
cmake -S . -B cmake.output_nocli_nogui -G "Unix Makefiles" -DBUILD_GUI=Off
192+
cmake -S . -B cmake.output_nocli_nogui -G "Unix Makefiles" -DBUILD_TESTING=Off -DBUILD_GUI=Off
193193
194194
build_cmake_cxxstd:
195195

@@ -373,7 +373,7 @@ jobs:
373373
run: |
374374
# make sure we fail when Boost is requested and not available.
375375
# will fail because no package configuration is available.
376-
if cmake -S . -B cmake.output.boost-force-noavail -G "Unix Makefiles" -DUSE_BOOST=On; then
376+
if cmake -S . -B cmake.output.boost-force-noavail -G "Unix Makefiles" -DBUILD_TESTING=Off -DUSE_BOOST=On; then
377377
exit 1
378378
else
379379
exit 0
@@ -386,12 +386,12 @@ jobs:
386386
387387
- name: Run CMake on macOS (force Boost)
388388
run: |
389-
cmake -S . -B cmake.output.boost-force -G "Unix Makefiles" -DUSE_BOOST=On
389+
cmake -S . -B cmake.output.boost-force -G "Unix Makefiles" -DBUILD_TESTING=Off -DUSE_BOOST=On
390390
391391
- name: Run CMake on macOS (no Boost)
392392
run: |
393393
# make sure Boost is not used when disabled even though it is available
394-
cmake -S . -B cmake.output.boost-no -G "Unix Makefiles" -DUSE_BOOST=Off
394+
cmake -S . -B cmake.output.boost-no -G "Unix Makefiles" -DBUILD_TESTING=Off -DUSE_BOOST=Off
395395
if grep -q '\-DHAVE_BOOST' ./cmake.output.boost-no/compile_commands.json; then
396396
exit 1
397397
else

.github/workflows/CI-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
rem TODO: enable rules?
5555
rem specify Release build so matchcompiler is used
56-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
56+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_TESTING=Off -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
5757
5858
- name: Build GUI release
5959
run: |
@@ -92,7 +92,7 @@ jobs:
9292

9393
- name: Run CMake
9494
run: |
95-
cmake -S . -B build.cxxstd -G "Visual Studio 17 2022" -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxxstd }} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
95+
cmake -S . -B build.cxxstd -G "Visual Studio 17 2022" -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxxstd }} -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=Off -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
9696
9797
- name: Build
9898
run: |

.github/workflows/release-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: |
8080
:: TODO: enable rules?
8181
:: specify Release build so matchcompiler is used
82-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On -DUSE_BOOST=ON -DBOOST_INCLUDEDIR=%GITHUB_WORKSPACE%\boost -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
82+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=Off -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On -DUSE_BOOST=ON -DBOOST_INCLUDEDIR=%GITHUB_WORKSPACE%\boost -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
8383
cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel!
8484
8585
# TODO: package PDBs

0 commit comments

Comments
 (0)