Skip to content

Commit 09e003f

Browse files
committed
cmake: improve png version handling
1 parent 4bd125b commit 09e003f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/cmake-win64.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
ILOC: d:/a/local
12+
png_ver: 1643
1213

1314
jobs:
1415
build:
@@ -45,11 +46,11 @@ jobs:
4546
- name: Build and Install libpng
4647
shell: cmd
4748
run: |
48-
curl -sSL -o lpng1643.zip https://download.sourceforge.net/libpng/lpng1643.zip
49-
unzip.exe -qq lpng1643.zip
50-
cd lpng1643
51-
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DPNG_TESTS=OFF -DPNG_SHARED=OFF
52-
cmake --build build --config Release --target install
49+
curl -sSL -o lpng${{env.png_ver}}.zip https://download.sourceforge.net/libpng/lpng${{env.png_ver}}.zip
50+
unzip.exe -qq lpng${{env.png_ver}}.zip
51+
cd lpng${{env.png_ver}}
52+
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DPNG_TESTS=OFF -DPNG_SHARED=OFF
53+
cmake --build build --config RelWithDebInfo --target install
5354
cd ..
5455
5556
- name: Build and Install libjpeg

0 commit comments

Comments
 (0)