Skip to content

Commit 3f74d84

Browse files
committed
cmake: explicitly define PNG_WRITE_APNG_SUPPORTED if using vcpkg
1 parent bb7d72f commit 3f74d84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gui/qt/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ find_package(PNG QUIET)
287287
if(PNG_FOUND)
288288
target_compile_definitions(CEmu PRIVATE "PNG_SUPPORT")
289289
target_link_libraries(CEmu PRIVATE PNG::PNG)
290+
# vcpkg provides a libpng that handles APNG
291+
if(VCPKG_TARGET_TRIPLET)
292+
target_compile_definitions(CEmu PRIVATE "PNG_WRITE_APNG_SUPPORTED")
293+
endif()
290294
else()
291295
message(WARNING "No LibPNG found! APNG capture will not be available")
292296
endif()

0 commit comments

Comments
 (0)