Skip to content

Commit

Permalink
(#8596) zstr: add version 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
toge authored Jan 3, 2022
1 parent ab61aa7 commit 98fd9c2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions recipes/zstr/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.0.5":
url: "https://github.com/mateidavid/zstr/archive/refs/tags/v1.0.5.tar.gz"
sha256: "c6ae65f1ed97f8fe2e9b0fa7d71a0980151e3936ec50d17403b8d233efa8276d"
"1.0.4":
url: "https://github.com/mateidavid/zstr/archive/refs/tags/v1.0.4.tar.gz"
sha256: "a594a3a9c192a6d9e93f9585910d41f7ee6791eb7c454d40c922656324b3058e"
4 changes: 2 additions & 2 deletions recipes/zstr/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ZstrConan(ConanFile):
name = "zstr"
description = "A C++ header-only ZLib wrapper."
license = "MIT"
topics = ("conan", "zstr", "zlib", "compression")
topics = ("zstr", "zlib", "compression")
homepage = "https://github.com/mateidavid/zstr"
url = "https://github.com/conan-io/conan-center-index"
settings = "compiler"
Expand All @@ -18,7 +18,7 @@ class ZstrConan(ConanFile):
def _source_subfolder(self):
return "source_subfolder"

def configure(self):
def validate(self):
if self.settings.compiler.get_safe("cppstd"):
tools.check_min_cppstd(self, 11)

Expand Down
6 changes: 4 additions & 2 deletions recipes/zstr/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.1)
project(test_package)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
conan_basic_setup(TARGETS)

find_package(zstr CONFIG REQUIRED)

add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS})
target_link_libraries(${PROJECT_NAME} zstr::zstr)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)
4 changes: 2 additions & 2 deletions recipes/zstr/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "cmake"
generators = "cmake", "cmake_find_package_multi"

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def test(self):
if not tools.cross_building(self.settings):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)
2 changes: 2 additions & 0 deletions recipes/zstr/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
"1.0.5":
folder: all
"1.0.4":
folder: all

0 comments on commit 98fd9c2

Please sign in to comment.