From d0dbe549a10d7ec48cae8fe3ebf7857d8529e0ec Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 21 Oct 2024 13:58:54 +0300 Subject: [PATCH] remove libspng mentions from Windows build --- src/CMakeLists.txt | 1 - src/coders/png.cpp | 2 -- vcpkg.json | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7cf236ef..ecd0c98b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -24,7 +24,6 @@ if (WIN32) set(LUA_LIBRARIES "${CMAKE_CURRENT_SOURCE_DIR}/../vcpkg/packages/luajit_x64-windows/lib/lua51.lib") set(LUA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../vcpkg/packages/luajit_x64-windows/include/luajit") find_package(glfw3 REQUIRED) - find_package(spng REQUIRED) find_package(glm REQUIRED) find_package(vorbis REQUIRED) set(VORBISLIB Vorbis::vorbis Vorbis::vorbisfile) diff --git a/src/coders/png.cpp b/src/coders/png.cpp index 76f4a7b2..8499361e 100644 --- a/src/coders/png.cpp +++ b/src/coders/png.cpp @@ -11,9 +11,7 @@ static debug::Logger logger("png-coder"); -#ifndef _WIN32 #define LIBPNG -#endif #ifdef LIBPNG #include diff --git a/vcpkg.json b/vcpkg.json index 05fe48e2..54ee4ec8 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -7,7 +7,7 @@ "glfw3", "glew", "glm", - "libspng", + "libpng", "zlib", "luajit", "libvorbis",