We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454514e commit 27dbc38Copy full SHA for 27dbc38
vendor/esmini/conanfile.py
@@ -4,6 +4,8 @@
4
from conan.tools import cmake, files, env
5
from conan.tools.system import package_manager
6
7
+from conans.tools import os_info
8
+
9
required_conan_version = ">=1.52.0"
10
11
@@ -57,13 +59,16 @@ def layout(self):
57
59
def system_requirements(self):
58
60
packages = None
61
if self.options.with_osg:
- # TODO: add all system requirements
62
packages = [
63
"libfontconfig1-dev",
- "libgl-dev",
64
"libxrandr-dev",
65
"libxinerama-dev",
66
]
67
+ if os_info.linux_distro == "ubuntu":
68
+ if os_info.os_version < "20":
69
+ packages.append("libgl1-mesa-dev")
70
+ else:
71
+ packages.append("libgl-dev")
72
if packages:
73
apt = package_manager.Apt(self)
74
apt.install(packages, update=True, check=True)
0 commit comments