diff options
author | Seth R. Johnson <johnsonsr@ornl.gov> | 2022-06-02 23:09:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 21:09:41 -0600 |
commit | 67ad23cc1134b4a4d158e9c4a55cf78ec143d08c (patch) | |
tree | 962d9977ba7c1f5baf5a8fb70d3d118abdae8f20 /var | |
parent | 8640b502580b9db0caa65daeeeee748fa00d616d (diff) | |
download | spack-67ad23cc1134b4a4d158e9c4a55cf78ec143d08c.tar.gz spack-67ad23cc1134b4a4d158e9c4a55cf78ec143d08c.tar.bz2 spack-67ad23cc1134b4a4d158e9c4a55cf78ec143d08c.tar.xz spack-67ad23cc1134b4a4d158e9c4a55cf78ec143d08c.zip |
geant4: enable building against spack-built geant outside of spack (#30936)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/geant4/package.py | 6 |
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', |