summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/geant4/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/geant4/package.py b/var/spack/repos/builtin/packages/geant4/package.py
index 611bc04e8f..a14c962388 100644
--- a/var/spack/repos/builtin/packages/geant4/package.py
+++ b/var/spack/repos/builtin/packages/geant4/package.py
@@ -196,10 +196,10 @@ class Geant4(CMakePackage):
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',