Skip to content

Commit

Permalink
Start development for 0.4.5, let meson generate the config.h
Browse files Browse the repository at this point in the history
With a generated config.h we have the meson.build file as single point
of truth for the version number.

Signed-off-by: Matthias Schmitz <[email protected]>
  • Loading branch information
mattthias committed Feb 3, 2024
1 parent 18a3565 commit 73b532b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config.h

This file was deleted.

3 changes: 3 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define PACKAGE_VERSION "@version@"
#define VERSION "@version@"
#define INSTALL_PREFIX "@install_prefix@"
7 changes: 7 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
project('slurm', 'c')

conf_data = configuration_data()
conf_data.set('version', '0.4.5-dev')
conf_data.set('install_prefix', get_option('prefix'))

configure_file(input : 'config.h.in',
output : 'config.h',
configuration : conf_data)

# We want ncurses but meson wraps ncurses and curses into the curses dependency
# https://mesonbuild.com/Dependencies.html#curses
Expand Down

0 comments on commit 73b532b

Please sign in to comment.