diff --git a/var/spack/repos/builtin/packages/xgboost/package.py b/var/spack/repos/builtin/packages/xgboost/package.py index 011a3fb257b..ef8b6053243 100644 --- a/var/spack/repos/builtin/packages/xgboost/package.py +++ b/var/spack/repos/builtin/packages/xgboost/package.py @@ -20,3 +20,10 @@ def cmake_args(self): return [ '-DUSE_CUDA={0}'.format('YES' if '+cuda' in self.spec else 'NO') ] + + def install(self, spec, prefix): + install_tree(str(self.stage.source_path), prefix) + # create a bin directory for executable "xgboost" which is possibly + # used in functional testing of the compilation target "libxgboost" + mkdirp(prefix.bin) + install('xgboost', prefix.bin)