Fix version number, fix version.hxx generation
parent
47547beb15
commit
2b649b14e0
|
@ -1,11 +1,8 @@
|
||||||
project( 'loopp', ['c','cpp'],
|
project( 'loopp', ['c','cpp'],
|
||||||
default_options : [
|
default_options : [
|
||||||
'cpp_std=c++11',
|
'cpp_std=c++11',
|
||||||
])
|
],
|
||||||
|
version: '1.2.1')
|
||||||
conf_data = configuration_data()
|
|
||||||
conf_data.set('version', '1.2.0')
|
|
||||||
|
|
||||||
|
|
||||||
if(get_option('tests') == true)
|
if(get_option('tests') == true)
|
||||||
add_project_arguments('-DBUILD_TESTS', language : 'cpp')
|
add_project_arguments('-DBUILD_TESTS', language : 'cpp')
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
version_hxx = vcs_tag(
|
version_hxx = vcs_tag(
|
||||||
input : 'version.hxx.in',
|
input : 'version.hxx.in',
|
||||||
output : 'version.hxx',
|
output : 'version.hxx',
|
||||||
fallback: 'Version info could not be read.')
|
command: ['git', 'describe', '--dirty=+', '--match=release-*', '--tags'],
|
||||||
|
fallback: meson.project_version())
|
||||||
|
|
||||||
if not get_option('unitTests')
|
if not get_option('unitTests')
|
||||||
message('Create build config for publishing')
|
message('Create build config for publishing')
|
||||||
|
|
Loading…
Reference in New Issue