Skip to content

Commit eac7313

Browse files
committed
Avoid libpng compilation on Windows spamming the Microsoft banner
1 parent f8d7b34 commit eac7313

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/create-release-artifacts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
shell: cmd
4040
run: |
4141
call .github\scripts\msvc-env.bat ${{ matrix.bits }}
42-
cmake -S . -B build -G Ninja -DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}"
42+
cmake -S . -B build -G Ninja ^
43+
-DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}" -DCMAKE_C_FLAGS="/nologo"
4344
cmake --build build
4445
- name: Package binaries
4546
working-directory: build

.github/workflows/testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ jobs:
182182
shell: cmd
183183
run: | # ASan seems to be broken on Windows, so we disable it.
184184
call .github\scripts\msvc-env.bat ${{ matrix.bits }}
185-
cmake -S . -B build -G Ninja --preset develop -DSANITIZERS=OFF ^
186-
-DTESTS_OS_NAME=${{ matrix.os }} -DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}"
185+
cmake -S . -B build -G Ninja --preset develop -DSANITIZERS=OFF -DTESTS_OS_NAME=${{ matrix.os }} ^
186+
-DFETCHCONTENT_BASE_DIR="${{ env.DEPS_ROOT_DIR }}" -DCMAKE_C_FLAGS="/nologo"
187187
cmake --build build
188188
- name: Package binaries
189189
working-directory: build

0 commit comments

Comments
 (0)