diff options
| -rw-r--r-- | conanfile.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
