Skip to content

Commit

Permalink
(conan-io#24473) caf: add version 1.0.0
Browse files Browse the repository at this point in the history
* caf: add version 1.0.0

* drop support gcc7 on 1.0.0

* use CAF_CXX_VERSION
  • Loading branch information
toge authored Jul 4, 2024
1 parent d519655 commit 302564b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions recipes/caf/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.0.0":
url: "https://github.com/actor-framework/actor-framework/archive/1.0.0.tar.gz"
sha256: "602018239d23a1805d35ebda704fd5c969a0693fc513fcf7459063b628459e5b"
"0.19.4":
url: "https://github.com/actor-framework/actor-framework/archive/0.19.4.tar.gz"
sha256: "114d43e3a7a2305ca1d2106cd0daeff471564f62b90db1e453ba9eb5c47c02f6"
Expand Down
9 changes: 5 additions & 4 deletions recipes/caf/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
class CAFConan(ConanFile):
name = "caf"
description = "An open source implementation of the Actor Model in C++"
license = "BSD-3-Clause", "BSL-1.0"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/actor-framework/actor-framework"
topics = "actor-framework", "actor-model", "pattern-matching", "actors"
license = "BSD-3-Clause", "BSL-1.0"

topics = ("actor-framework", "actor-model", "pattern-matching", "actors")
package_type = "library"
settings = "os", "arch", "compiler", "build_type"
options = {
Expand All @@ -41,7 +40,7 @@ def _minimum_compilers_version(self):
return {
"Visual Studio": "16",
"msvc": "192",
"gcc": "7",
"gcc": "7" if Version(self.version) < "1.0.0" else "8",
"clang": "6", # Should be 5 but clang 5 has a bug that breaks compiling CAF
# see https://github.com/actor-framework/actor-framework/issues/1226
"apple-clang": "10",
Expand Down Expand Up @@ -90,6 +89,8 @@ def generate(self):
tc = CMakeToolchain(self)
if not valid_min_cppstd(self, self._min_cppstd):
tc.variables["CMAKE_CXX_STANDARD"] = self._min_cppstd
else:
tc.variables["CAF_CXX_VERSION"] = str(self.settings.compiler.cppstd).replace("gnu", "")
tc.variables["CAF_ENABLE_OPENSSL_MODULE"] = self.options.with_openssl
tc.variables["CAF_ENABLE_EXAMPLES"] = False
tc.variables["CAF_ENABLE_TOOLS"] = False
Expand Down
2 changes: 2 additions & 0 deletions recipes/caf/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"1.0.0":
folder: all
"0.19.4":
folder: all
"0.19.3":
Expand Down

0 comments on commit 302564b

Please sign in to comment.