root: fix macos build (#47483)

No ROOT `builtin` should ever be set to true if possible, because that
builds an existing library that spack may not know about.

Furthermore, using `builtin_glew` forces the package to be on, even when
not building x/gl/aqua on macos. This causes build failures.

Caused by https://github.com/spack/spack/pull/45632#issuecomment-2276311748 .
This commit is contained in:
Seth R. Johnson 2024-11-09 08:30:38 -05:00 committed by GitHub
parent 7fbfb0f6dc
commit 1884520f7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -634,7 +634,7 @@ def cmake_args(self):
define("builtin_freetype", False),
define("builtin_ftgl", False),
define("builtin_gl2ps", False),
define("builtin_glew", self.spec.satisfies("platform=darwin")),
define("builtin_glew", False),
define("builtin_gsl", False),
define("builtin_llvm", True),
define("builtin_lz4", self.spec.satisfies("@6.12.02:6.12")),