Skip to content

Commit

Permalink
Fix lodepng recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
intelligide committed Aug 4, 2020
1 parent 091fba7 commit 3b01548
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion recipes/lodepng/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class LodepngConan(ConanFile):
name = "lodepng"
description = "PNG encoder and decoder in C and C++, without dependencies."
license = "ZLIB"
license = "Zlib"
topics = ("conan", "png", "encoder", "decoder")
homepage = "https://github.com/lvandeve/lodepng"
url = "https://github.com/conan-io/conan-center-index"
Expand Down
2 changes: 1 addition & 1 deletion recipes/lodepng/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.1)
project(test_package)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
Expand Down
5 changes: 1 addition & 4 deletions recipes/lodepng/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <iostream>
#include <vector>
#include <cstdint>
#include <cassert>
#include <fstream>

#include "lodepng.h"
Expand All @@ -13,9 +12,7 @@ int main()

std::vector<uint8_t> decoded;
unsigned width = 0, height = 0;
unsigned error = lodepng::decode(decoded, width, height, data);
assert(static_cast<bool>(error) == false);

lodepng::decode(decoded, width, height, data);
stream.close();

return 0;
Expand Down

0 comments on commit 3b01548

Please sign in to comment.