Skip to content

Commit

Permalink
Condition cmake dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Sep 9, 2023
1 parent ae821d0 commit 0478ea2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
from conan import ConanFile
import shutil

class ApngasmRecipe(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'

def requirements(self):
self.requires("zlib/1.2.13")
self.requires("libpng/1.6.40")
self.requires("boost/1.73.0")
self.requires("boost/1.69.0")
self.generators = ['CMakeToolchain', 'CMakeDeps']

def build_requirements(self):
# https://stackoverflow.com/questions/42123509/cmake-finds-boost-but-the-imported-targets-not-available-for-boost-version
self.tool_requires("cmake/[>=3.27]")
self.build_requires("b2/4.5.0")
if not shutil.which('cmake'):
self.tool_requires("cmake/[>=3.27]")

def build(self):
build_type = 'Release'

0 comments on commit 0478ea2

Please sign in to comment.