You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
if minimum_version and Version(self.settings.compiler.version) < minimum_version:
Description
building with fast-dds on Ubuntu1804 or Ubuntu 2004 results in incorrect detection of lacking C++11 support. Specifically these lines of the conanfile.py:
https://github.com/conan-io/conan-center-index/blob/master/recipes/fast-dds/all/conanfile.py#L91
Which will throw if your compiler is < gcc 10, but C++11 support in gcc was introduced as far back as gcc 4.3
https://en.cppreference.com/w/cpp/compiler_support/11
There is no reason why gcc10 should be the minimum supported version. gcc7 on ubuntu1804 should support fast-dds just fine.
Package and Environment Details
Conan profile
{% set compiler, version, compiler_exe = detect_api.detect_default_compiler() %}
[settings]
arch={{detect_api.detect_arch()}}
build_type={{ BUILD_TYPE if BUILD_TYPE else "Debug" }}
compiler={{compiler}}
compiler.cppstd=11
compiler.libcxx=libstdc++11
compiler.version={{detect_api.default_compiler_version(compiler, version)}}
compiler.threads=posix
os=Linux
[options]
*:shared=False
*:fPIC=True
Steps to reproduce
docker run --rm -it ubuntu:18.04
apt update
apt install python3-pip build-essential cmake
pip3 install conan cmake
conan profile detect
conan install --requires=fast-dds/2.11.2
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: