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).
This commit is contained in:
Ben Darwin 2021-11-09 05:19:32 -05:00 committed by GitHub
parent a3dd0e7861
commit 7c118ee22b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')
]