Skip to content

Commit e770c86

Browse files
reflect-cpp: Add version 0.21 (#28542)
* Add 0.20 and 0.21 * Remove v0.20 * Don't remove the necessary CMake target files * address MR comments * Apply suggestion from @franramirez688 * Update recipes/reflect-cpp/all/conanfile.py --------- Co-authored-by: Francisco Ramírez <[email protected]>
1 parent 3ad7b94 commit e770c86

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

recipes/reflect-cpp/all/conandata.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ sources:
1111
"0.19.0":
1212
url: "https://github.com/getml/reflect-cpp/archive/refs/tags/v0.19.0.tar.gz"
1313
sha256: "aad9e010a0e716ecf643a95cec2047c74ce4311accfe42b4cf888672267ab8cd"
14+
"0.21.0":
15+
url: "https://github.com/getml/reflect-cpp/archive/refs/tags/v0.21.0.tar.gz"
16+
sha256: "007d6e44a750785cb4c94dc29f307119abde679e4b09fb72b9b5c3f0f067cab2"
17+

recipes/reflect-cpp/all/conanfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def validate(self):
112112
minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
113113
if minimum_version and Version(self.settings.compiler.version) < minimum_version:
114114
raise ConanInvalidConfiguration(f"{self.ref} requires C++20 features, which your compiler does not fully support.")
115-
115+
if Version(self.version) < "0.22" and self.settings.compiler == "msvc" and self.options.shared:
116+
raise ConanInvalidConfiguration("Old versions of this library do not support MSVC-shared builds")
117+
116118
def layout(self):
117119
cmake_layout(self, src_folder="src")
118120

recipes/reflect-cpp/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ versions:
77
folder: all
88
"0.19.0":
99
folder: all
10+
"0.21.0":
11+
folder: all

0 commit comments

Comments
 (0)