geant4: enable building against spack-built geant outside of spack (#30936)

This commit is contained in:
Seth R. Johnson 2022-06-02 23:09:41 -04:00 committed by GitHub
parent 8640b50258
commit 67ad23cc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,10 +196,10 @@ def cmake_args(self):
options.append(
self.define_from_variant('GEANT4_BUILD_CXXSTD', 'cxxstd'))
# Don't install the package cache file as Spack will set
# up CMAKE_PREFIX_PATH etc for the dependencies
if spec.version >= Version('10.6'):
options.append('-DGEANT4_INSTALL_PACKAGE_CACHE=OFF')
# When building a downstream library/app outside of Spack, make
# sure that Geant4's dependencies are found
options.append(self.define('GEANT4_INSTALL_PACKAGE_CACHE', True))
# Multithreading
options.append(self.define_from_variant('GEANT4_BUILD_MULTITHREADED',