Skip to content

Commit

Permalink
(conan-io#15126) erikzenker-hsm: add version 2.3.0, update boost
Browse files Browse the repository at this point in the history
* erikzenker-hsm: add version 2.3.0, update boost

* add src_folder param
  • Loading branch information
toge authored and franramirez688 committed Jan 20, 2023
1 parent 27ab96e commit 5af2d67
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
7 changes: 5 additions & 2 deletions recipes/erikzenker-hsm/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
sources:
"2.3.0":
url: "https://github.com/erikzenker/hsm/archive/v2.3.0.tar.gz"
sha256: "b3a13cd70fa2470fba4db09fad3c22afbfe6042c8da81da4396f890d02ee3518"
"2.1.0":
url: "https://github.com/erikzenker/hsm/archive/v2.1.0.tar.gz"
sha256: "956eb4950e1bee3074e10fe85279164386ba34e4e96fabe694aaf20b24adcdef"
"1.4.7":
sha256: e56fd4a71337448727dbb9e2abe18992224d496a7ab5567030d6717a00680364
url: https://github.com/erikzenker/hsm/archive/refs/tags/v1.4.7.tar.gz
url: "https://github.com/erikzenker/hsm/archive/refs/tags/v1.4.7.tar.gz"
sha256: "e56fd4a71337448727dbb9e2abe18992224d496a7ab5567030d6717a00680364"
6 changes: 3 additions & 3 deletions recipes/erikzenker-hsm/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class HsmConan(ConanFile):
name = "erikzenker-hsm"
license = "MIT"
homepage = "https://github.com/erikzenker/hsm.git"
homepage = "https://github.com/erikzenker/hsm"
url = "https://github.com/conan-io/conan-center-index"
description = (
"The hana state machine (hsm) is a finite state machine library based "
Expand All @@ -26,7 +26,7 @@ class HsmConan(ConanFile):
generators = "CMakeDeps"

def requirements(self):
self.requires("boost/1.79.0")
self.requires("boost/1.81.0")

def package_id(self):
self.info.clear()
Expand All @@ -42,7 +42,7 @@ def validate(self):
raise ConanInvalidConfiguration("GCC 8+ is required")

def layout(self):
cmake_layout(self)
cmake_layout(self, src_folder="src")

def source(self):
get(self, **self.conan_data["sources"][self.version],
Expand Down
9 changes: 3 additions & 6 deletions recipes/erikzenker-hsm/all/test_v1_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
cmake_minimum_required(VERSION 3.8)
project(test_package LANGUAGES CXX)
project(test_package)

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

find_package(hsm REQUIRED CONFIG)

add_executable(${PROJECT_NAME} ../test_package/test_package.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE hsm::hsm)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/
${CMAKE_CURRENT_BINARY_DIR}/test_package/)
1 change: 0 additions & 1 deletion recipes/erikzenker-hsm/all/test_v1_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: skip-file
from conans import ConanFile, CMake, tools
import os

Expand Down
2 changes: 2 additions & 0 deletions recipes/erikzenker-hsm/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"2.3.0":
folder: all
"2.1.0":
folder: all
"1.4.7":
Expand Down

0 comments on commit 5af2d67

Please sign in to comment.