mirror of
https://github.com/mpusz/mp-units.git
synced 2025-06-25 01:01:33 +02:00
cmcstl2 dependency changed to range-v3 0.9.1
This commit is contained in:
@ -56,6 +56,9 @@ NOTE: This library as of now compiles correctly only with gcc-9.1 and newer.
|
||||
|
||||
## Release notes
|
||||
|
||||
- 0.3.1 Sep 18, 2019
|
||||
- cmcstl2 dependency changed to range-v3 0.9.1
|
||||
|
||||
- 0.3.0 Sep 16, 2019 (CppCon 2019 design)
|
||||
- The design as described on CppCon 2019 talk
|
||||
- Applied the feedback from the Cologne evening session
|
||||
|
@ -45,7 +45,7 @@ class UnitsConan(ConanFile):
|
||||
exports = ["LICENSE.md"]
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
requires = (
|
||||
"cmcstl2/2019.09.09@mpusz/stable"
|
||||
"range-v3/0.9.1@ericniebler/stable"
|
||||
)
|
||||
scm = {
|
||||
"type": "git",
|
||||
@ -82,6 +82,8 @@ class UnitsConan(ConanFile):
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.includedirs = ['include']
|
||||
if self.settings.compiler == "gcc":
|
||||
self.cpp_info.cxxflags = ["-fconcepts"]
|
||||
|
||||
def package_id(self):
|
||||
self.info.settings.clear()
|
||||
|
@ -53,17 +53,20 @@ add_library(units INTERFACE)
|
||||
target_compile_features(units INTERFACE cxx_std_20)
|
||||
target_link_libraries(units
|
||||
INTERFACE
|
||||
CONAN_PKG::cmcstl2
|
||||
CONAN_PKG::range-v3
|
||||
)
|
||||
target_include_directories(units
|
||||
INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
target_compile_options(units
|
||||
INTERFACE
|
||||
-Wno-literal-suffix
|
||||
)
|
||||
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
target_compile_options(units
|
||||
INTERFACE
|
||||
-Wno-literal-suffix
|
||||
-fconcepts
|
||||
)
|
||||
endif()
|
||||
add_library(mp::units ALIAS units)
|
||||
|
||||
# installation info
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <experimental/ranges/concepts>
|
||||
#include <concepts/concepts.hpp>
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define Expects(cond) (void)(cond);
|
||||
@ -34,10 +34,10 @@
|
||||
namespace std {
|
||||
|
||||
// concepts
|
||||
using experimental::ranges::same_as;
|
||||
using experimental::ranges::derived_from;
|
||||
using experimental::ranges::regular;
|
||||
using experimental::ranges::totally_ordered;
|
||||
using experimental::ranges::convertible_to;
|
||||
using concepts::same_as;
|
||||
using concepts::derived_from;
|
||||
using concepts::regular;
|
||||
using concepts::totally_ordered;
|
||||
using concepts::convertible_to;
|
||||
|
||||
}
|
||||
|
@ -26,7 +26,11 @@ function(add_metabench_test target name erb_path range)
|
||||
target_compile_features(${target} PUBLIC cxx_std_20)
|
||||
target_link_libraries(${target}
|
||||
PUBLIC
|
||||
CONAN_PKG::cmcstl2
|
||||
CONAN_PKG::range-v3
|
||||
)
|
||||
target_compile_options(${target}
|
||||
PUBLIC
|
||||
-fconcepts
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <experimental/ranges/concepts>
|
||||
#include <concepts/concepts.hpp>
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define Expects(cond) (void)(cond);
|
||||
@ -34,10 +34,10 @@
|
||||
namespace std {
|
||||
|
||||
// concepts
|
||||
using experimental::ranges::same_as;
|
||||
using experimental::ranges::derived_from;
|
||||
using experimental::ranges::regular;
|
||||
using experimental::ranges::totally_ordered;
|
||||
using experimental::ranges::convertible_to;
|
||||
using concepts::same_as;
|
||||
using concepts::derived_from;
|
||||
using concepts::regular;
|
||||
using concepts::totally_ordered;
|
||||
using concepts::convertible_to;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user