revbayes: Update pre-build process (#15485)

This commit is contained in:
Nick Booher 2020-03-18 13:18:45 -05:00 committed by GitHub
parent 8cdd78cd1d
commit 156b59c2f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,11 @@ def root_cmakelists_dir(self):
def regenerate(self):
with working_dir(join_path('projects', 'cmake')):
mkdirp('build')
if self.spec.version > Version('1.0.13'):
generate_version = Executable('./generate_version_number.sh')
generate_version()
dest = join_path('..', '..', 'src', 'revlanguage', 'utils')
install('GitVersion.cpp', dest)
edit = FileFilter('regenerate.sh')
edit.filter('boost="true"', 'boost="false"')
if '+mpi' in self.spec: