assimp: depends on pkgconfig; disable bundled dependencies (#29551)

* [assimp] depends_on pkgconfig and disable hunter, build zlib/minizip
This commit is contained in:
Wouter Deconinck
2022-03-17 09:56:33 -05:00
committed by GitHub
parent e174623edf
commit b26b3bebb4

View File

@@ -31,6 +31,7 @@ class Assimp(CMakePackage):
variant('shared', default=True,
description='Enables the build of shared libraries')
depends_on('pkgconfig', type='build')
depends_on('zlib')
depends_on('boost')
@@ -39,6 +40,9 @@ def patch(self):
def cmake_args(self):
args = [
'-DASSIMP_HUNTER_ENABLED=OFF',
'-DASSIMP_BUILD_ZLIB=OFF',
'-DASSIMP_BUILD_MINIZIP=OFF',
'-DASSIMP_BUILD_TESTS=OFF',
self.define_from_variant('BUILD_SHARED_LIBS', 'shared'),
]