From 37a97c9c2e036a64f73cb50db5c5701436904162 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 5 Jan 2020 14:38:47 +0100 Subject: pkg: include standard version in flags --- conanfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conanfile.py b/conanfile.py index ce151dd..51a159a 100644 --- a/conanfile.py +++ b/conanfile.py @@ -20,6 +20,7 @@ class NewtypeConan(ConanFile): "url": "https://github.com/fmorgner/newtype.git", "revision": "auto", } + settings = ("compiler",) version = get_version() license = "BSD-3-Clause" url = "https://github.com/fmorgner/newtype" @@ -44,3 +45,7 @@ class NewtypeConan(ConanFile): def package(self): cmake = self._configure_cmake() cmake.install() + + def package_info(self): + if self.settings.compiler in ["gcc", "clang"]: + self.cpp_info.cxxflags = "-std=c++20" \ No newline at end of file -- cgit v1.2.3