Skip to content

Commit

Permalink
cmake: add compiler + remove compiler.version to reduce number of builds
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 29, 2020
1 parent c9c9a1d commit 4a209d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/cmake/3.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CMakeConan(ConanFile):
license = "BSD-3-Clause"
exports_sources = ["CMakeLists.txt"]
generators = "cmake"
settings = "os", "arch", "build_type"
settings = "os", "arch", "compiler", "build_type"

_source_subfolder = "source_subfolder"
_cmake = None
Expand Down Expand Up @@ -54,6 +54,10 @@ def package(self):
cmake.install()
tools.rmdir(os.path.join(self.package_folder, "doc"))

def package_id(self):
# CMake is a executable-only package, so the compiler version does not matter
del self.info.settings.compiler.version

def package_info(self):
minor = self._minor_version()

Expand Down

0 comments on commit 4a209d5

Please sign in to comment.