summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2021-11-09 05:19:32 -0500
committerGitHub <noreply@github.com>2021-11-09 11:19:32 +0100
commit7c118ee22b7306854638788ecc7526f7289ec7e3 (patch)
tree630e78c74849d53e798c72f209f38406cf63688f
parenta3dd0e78613f1016bbd35e4dabcf95ea63616788 (diff)
downloadspack-7c118ee22b7306854638788ecc7526f7289ec7e3.tar.gz
spack-7c118ee22b7306854638788ecc7526f7289ec7e3.tar.bz2
spack-7c118ee22b7306854638788ecc7526f7289ec7e3.tar.xz
spack-7c118ee22b7306854638788ecc7526f7289ec7e3.zip
ants: fix build by setting BUILD_TESTING=OFF (#26768)
Due to Kitware API changes, default ANTs builds were failing, presumably for all versions (https://github.com/ANTsX/ANTs/issues/1236). This commit defaults BUILD_TESTING to OFF, preventing calls against these APIs and fixing all versions. Note that the ANTs test suite was not clean anyway (e.g. ANTs/#842).
-rw-r--r--var/spack/repos/builtin/packages/ants/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ants/package.py b/var/spack/repos/builtin/packages/ants/package.py
index 6c3c2232af..caf63d8f4b 100644
--- a/var/spack/repos/builtin/packages/ants/package.py
+++ b/var/spack/repos/builtin/packages/ants/package.py
@@ -27,6 +27,7 @@ class Ants(CMakePackage):
def cmake_args(self):
return [
+ "-DBUILD_TESTING=OFF", # needed for <= 2.3.5 due to ANTs/#1236
self.define_from_variant('ITK_BUILD_MINC_SUPPORT', 'minc')
]