aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2020-01-05 14:38:47 +0100
committerFelix Morgner <felix.morgner@gmail.com>2020-01-05 14:38:47 +0100
commit37a97c9c2e036a64f73cb50db5c5701436904162 (patch)
treedbe68e7ed20df1231e251f7e61116297366f7af3
parent1f33b0c0c5763152e10d0e13af7cdc914b7d7064 (diff)
downloadnewtype-37a97c9c2e036a64f73cb50db5c5701436904162.tar.xz
newtype-37a97c9c2e036a64f73cb50db5c5701436904162.zip
pkg: include standard version in flags
-rw-r--r--conanfile.py5
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