sfcgal: fix boost build issues (#31254)
This commit is contained in:
parent
e5cc3c51d1
commit
c533612ab6
@ -4,7 +4,6 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
from spack.pkg.builtin.boost import Boost
|
|
||||||
|
|
||||||
|
|
||||||
class Sfcgal(CMakePackage):
|
class Sfcgal(CMakePackage):
|
||||||
@ -24,12 +23,7 @@ class Sfcgal(CMakePackage):
|
|||||||
depends_on('cmake@2.8.6:', type='build')
|
depends_on('cmake@2.8.6:', type='build')
|
||||||
# Ref: https://oslandia.github.io/SFCGAL/installation.html, but starts to work @4.7:
|
# Ref: https://oslandia.github.io/SFCGAL/installation.html, but starts to work @4.7:
|
||||||
depends_on('cgal@4.7: +core')
|
depends_on('cgal@4.7: +core')
|
||||||
depends_on('boost@1.54.0:')
|
depends_on('boost@1.54.0:+chrono+filesystem+program_options+serialization+system+test+thread+timer')
|
||||||
|
|
||||||
# TODO: replace this with an explicit list of components of Boost,
|
|
||||||
# for instance depends_on('boost +filesystem')
|
|
||||||
# See https://github.com/spack/spack/pull/22303 for reference
|
|
||||||
depends_on(Boost.with_default_variants)
|
|
||||||
depends_on('mpfr@2.2.1:')
|
depends_on('mpfr@2.2.1:')
|
||||||
depends_on('gmp@4.2:')
|
depends_on('gmp@4.2:')
|
||||||
|
|
||||||
@ -37,4 +31,7 @@ def cmake_args(self):
|
|||||||
# It seems viewer is discontinued as of v1.3.0
|
# It seems viewer is discontinued as of v1.3.0
|
||||||
# https://github.com/Oslandia/SFCGAL/releases/tag/v1.3.0
|
# https://github.com/Oslandia/SFCGAL/releases/tag/v1.3.0
|
||||||
# Also, see https://github.com/Oslandia/SFCGAL-viewer
|
# Also, see https://github.com/Oslandia/SFCGAL-viewer
|
||||||
return ['-DSFCGAL_BUILD_VIEWER=OFF']
|
return [
|
||||||
|
self.define('BUILD_SHARED_LIBS', True),
|
||||||
|
self.define('SFCGAL_BUILD_VIEWER', False),
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user