summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>2020-02-16 22:30:32 +0100
committerGitHub <noreply@github.com>2020-02-16 15:30:32 -0600
commit1cc7a3533bc31b09ca5a626cb38d3c8dd9b6997d (patch)
tree8c4203aa1f13fa5eba34f687171697925efdd891
parent60847abf0e9ec2939ff13950e9d6c00b6b73e17e (diff)
downloadspack-1cc7a3533bc31b09ca5a626cb38d3c8dd9b6997d.tar.gz
spack-1cc7a3533bc31b09ca5a626cb38d3c8dd9b6997d.tar.bz2
spack-1cc7a3533bc31b09ca5a626cb38d3c8dd9b6997d.tar.xz
spack-1cc7a3533bc31b09ca5a626cb38d3c8dd9b6997d.zip
Fix header-only installation of Boost. (#14995)
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index 884aaa40b6..452ae99b8a 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -405,15 +405,6 @@ class Boost(Package):
for lib in Boost.all_libs:
if "+{0}".format(lib) in spec:
with_libs.append(lib)
- if not with_libs:
- # if no libraries are specified for compilation, then you dont have
- # to configure/build anything, just copy over to the prefix
- # directory.
- src = join_path(self.stage.source_path, 'boost')
- mkdirp(join_path(prefix, 'include'))
- dst = join_path(prefix, 'include', 'boost')
- install_tree(src, dst)
- return
# Remove libraries that the release version does not support
if spec.satisfies('@1.69.0:') and 'signals' in with_libs:
@@ -433,6 +424,16 @@ class Boost(Package):
if '+graph' in spec and '+mpi' in spec:
with_libs.append('graph_parallel')
+ if not with_libs:
+ # if no libraries are specified for compilation, then you dont have
+ # to configure/build anything, just copy over to the prefix
+ # directory.
+ src = join_path(self.stage.source_path, 'boost')
+ mkdirp(join_path(prefix, 'include'))
+ dst = join_path(prefix, 'include', 'boost')
+ install_tree(src, dst)
+ return
+
# to make Boost find the user-config.jam
env['BOOST_BUILD_PATH'] = self.stage.source_path