aboutsummaryrefslogtreecommitdiff
path: root/conanfile.py
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2020-01-05 14:40:20 +0100
committerFelix Morgner <felix.morgner@gmail.com>2020-01-05 14:40:20 +0100
commit397b62bb21e8f732c8c05a99590dec7acfe53fbc (patch)
treec2080a4a8f1b75d7f005b76ae445c7e81c7df62a /conanfile.py
parente2fb4684c45ec8c8b254baa105c2d6d803882425 (diff)
parentda53a8c42f7092f58586480080738a540eed64ca (diff)
downloadnewtype-397b62bb21e8f732c8c05a99590dec7acfe53fbc.tar.xz
newtype-397b62bb21e8f732c8c05a99590dec7acfe53fbc.zip
newtype: release version 1.0.1v1.0.1
Diffstat (limited to 'conanfile.py')
-rw-r--r--conanfile.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/conanfile.py b/conanfile.py
index 6fcbf48..51a159a 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -20,12 +20,13 @@ 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"
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"
)
@@ -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