From 4188ddba62b1d64bc6284c468e25c3dfa45865f9 Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Sun, 7 May 2023 13:08:56 +0200 Subject: [PATCH] workaround to fix "all shared" on Linux --- recipes/openmvg/all/conanfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/openmvg/all/conanfile.py b/recipes/openmvg/all/conanfile.py index cb31a55747055..9d0398a05fec3 100644 --- a/recipes/openmvg/all/conanfile.py +++ b/recipes/openmvg/all/conanfile.py @@ -2,6 +2,7 @@ from conan.errors import ConanInvalidConfiguration from conan.tools.build import check_min_cppstd, valid_min_cppstd from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout +from conan.tools.env import VirtualRunEnv from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rename, rm, rmdir from conan.tools.microsoft import is_msvc from conan.tools.scm import Version @@ -84,6 +85,10 @@ def source(self): get(self, **self.conan_data["sources"][self.version], strip_root=True) def generate(self): + # TODO: to remove once https://github.com/conan-io/conan/issues/13560 fixed + if self.settings.os == "Linux": + VirtualRunEnv(self).generate(scope="build") + tc = CMakeToolchain(self) tc.variables["OpenMVG_BUILD_SHARED"] = self.options.shared tc.variables["OpenMVG_BUILD_TESTS"] = False