Skip to content

Commit

Permalink
flatcc: fix shared library access during test build
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 24, 2023
1 parent b63a37d commit 8a18af9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipes/flatcc/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import cmake_layout, CMake
from conan.tools.env import VirtualRunEnv


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

def requirements(self):
Expand All @@ -19,6 +20,11 @@ def build_requirements(self):
def layout(self):
cmake_layout(self)

def generate(self):
VirtualRunEnv(self).generate(scope="build")
VirtualRunEnv(self).generate(scope="run")


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

0 comments on commit 8a18af9

Please sign in to comment.