Skip to content

Commit

Permalink
(#5760) cmake: add 3.20.3
Browse files Browse the repository at this point in the history
* modernize source(self)

* cmake: ad 3.20.3

* Update conandata.yml

* Update conandata.yml
  • Loading branch information
ericLemanissier authored Jun 7, 2021
1 parent cc94a08 commit 19302b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions recipes/cmake/3.x.x/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ sources:
"3.20.2":
sha256: aecf6ecb975179eb3bb6a4a50cae192d41e92b9372b02300f9e8f1d5f559544e
url: https://github.com/Kitware/CMake/releases/download/v3.20.2/cmake-3.20.2.tar.gz
"3.20.3":
sha256: 4d008ac3461e271fcfac26a05936f77fc7ab64402156fb371d41284851a651b8
url: https://github.com/Kitware/CMake/releases/download/v3.20.3/cmake-3.20.3.tar.gz
5 changes: 2 additions & 3 deletions recipes/cmake/3.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from conans import tools, ConanFile, CMake
from conans.errors import ConanInvalidConfiguration, ConanException

required_conan_version = ">=1.33.0"

class CMakeConan(ConanFile):
name = "cmake"
Expand Down Expand Up @@ -63,9 +64,7 @@ def requirements(self):
self.requires("openssl/1.1.1k")

def source(self):
tools.get(**self.conan_data["sources"][self.version])
extracted_dir = self.name + "-" + self.version
os.rename(extracted_dir, self._source_subfolder)
tools.get(**self.conan_data["sources"][self.version], strip_root=True, destination=self._source_subfolder)

def _configure_cmake(self):
if not self._cmake:
Expand Down
2 changes: 2 additions & 0 deletions recipes/cmake/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ versions:
folder: "3.x.x"
"3.20.2":
folder: "3.x.x"
"3.20.3":
folder: "3.x.x"

0 comments on commit 19302b6

Please sign in to comment.