Skip to content

Commit

Permalink
asn1c: fix test_package
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 19, 2023
1 parent b013f5d commit a93f959
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 40 deletions.
3 changes: 2 additions & 1 deletion recipes/asn1c/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from conan.tools.layout import basic_layout
from conan.tools.microsoft import is_msvc

required_conan_version = ">=1.47.0"
required_conan_version = ">=1.53.0"


class Asn1cConan(ConanFile):
Expand Down Expand Up @@ -99,3 +99,4 @@ def package_info(self):
bin_path = os.path.join(self.package_folder, "bin")
self.output.info(f"Appending PATH environment variable: {bin_path}")
self.env_info.PATH.append(bin_path)
self.env_info.SUPPORT_PATH = support_path
4 changes: 4 additions & 0 deletions recipes/asn1c/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.15)
project(test_package C)

if (NOT DEFINED ENV{SUPPORT_PATH})
message(FATAL_ERROR "SUPPORT_PATH environment variable not defined")
endif()

set(STANDARD_ASN1_FILES
BIT_STRING.c
INTEGER.c
Expand Down
5 changes: 1 addition & 4 deletions recipes/asn1c/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@

class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv"
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv", "VirtualBuildEnv"
test_type = "explicit"

def requirements(self):
self.requires(self.tested_reference_str)

def build_requirements(self):
self.tool_requires(self.tested_reference_str)

Expand Down
8 changes: 0 additions & 8 deletions recipes/asn1c/all/test_v1_package/CMakeLists.txt

This file was deleted.

27 changes: 0 additions & 27 deletions recipes/asn1c/all/test_v1_package/conanfile.py

This file was deleted.

0 comments on commit a93f959

Please sign in to comment.