From 1f33b0c0c5763152e10d0e13af7cdc914b7d7064 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 5 Jan 2020 14:20:46 +0100 Subject: pkg: only add dependencies when building --- conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conanfile.py') diff --git a/conanfile.py b/conanfile.py index 6fcbf48..ce151dd 100644 --- a/conanfile.py +++ b/conanfile.py @@ -25,7 +25,7 @@ class NewtypeConan(ConanFile): url = "https://github.com/fmorgner/newtype" description = "A library of types and functions to create strong type aliases" generators = "cmake" - requires = ( + build_requires = ( "CUTE/2.2.6@fmorgner/stable", "lyra/1.2.0" ) -- cgit v1.2.3 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(+) (limited to 'conanfile.py') 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