xgboost: make sure "libxgboost.so" is provided under prefix/lib (#10208)

This commit is contained in:
Sinan 2018-12-30 08:15:08 -08:00 committed by Todd Gamblin
parent 309f70758b
commit 70c5088a4c

View File

@ -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)