Skip to content

Commit 27dbc38

Browse files
committed
vendor: Fix esmini build for Ubuntu 18.04
1 parent 454514e commit 27dbc38

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vendor/esmini/conanfile.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from conan.tools import cmake, files, env
55
from conan.tools.system import package_manager
66

7+
from conans.tools import os_info
8+
79
required_conan_version = ">=1.52.0"
810

911

@@ -57,13 +59,16 @@ def layout(self):
5759
def system_requirements(self):
5860
packages = None
5961
if self.options.with_osg:
60-
# TODO: add all system requirements
6162
packages = [
6263
"libfontconfig1-dev",
63-
"libgl-dev",
6464
"libxrandr-dev",
6565
"libxinerama-dev",
6666
]
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")
6772
if packages:
6873
apt = package_manager.Apt(self)
6974
apt.install(packages, update=True, check=True)

0 commit comments

Comments
 (0)