Skip to content

Commit

Permalink
libidn: fix shared lib not being found in v1
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 3, 2023
1 parent f2deda0 commit 03ac3af
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions recipes/libidn/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import os

from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import cmake_layout, CMake
import os
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 @@ -18,6 +20,10 @@ 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 03ac3af

Please sign in to comment.