From b26b3bebb4f44009f1e452b983b8fedb2e4e17ef Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Thu, 17 Mar 2022 09:56:33 -0500 Subject: [PATCH] assimp: depends on pkgconfig; disable bundled dependencies (#29551) * [assimp] depends_on pkgconfig and disable hunter, build zlib/minizip --- var/spack/repos/builtin/packages/assimp/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/assimp/package.py b/var/spack/repos/builtin/packages/assimp/package.py index a0f950a978..cfa3f2a0c3 100644 --- a/var/spack/repos/builtin/packages/assimp/package.py +++ b/var/spack/repos/builtin/packages/assimp/package.py @@ -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'), ]