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(-) 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(+) 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 From da53a8c42f7092f58586480080738a540eed64ca Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 5 Jan 2020 14:39:31 +0100 Subject: newtype: bump version to 1.0.1 --- CMakeLists.txt | 2 +- include/newtype/version.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 275877a..93f154e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION "3.9.0") project("newtype" - VERSION "1.0.0" + VERSION "1.0.1" LANGUAGES CXX DESCRIPTION "A library of types and functions to create strong type aliases" ) diff --git a/include/newtype/version.hpp b/include/newtype/version.hpp index c7c3314..be6e26e 100644 --- a/include/newtype/version.hpp +++ b/include/newtype/version.hpp @@ -14,7 +14,7 @@ namespace nt } version{ .major = 1, .minor = 0, - .patch = 0, + .patch = 1, .name = "Francesca", }; -- cgit v1.2.3