Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
dbus
dbus
Commits
45de11f0
Commit
45de11f0
authored
May 22, 2011
by
Ralf Habacker
Committed by
Simon McVittie
May 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
To avoid double dbus version definitions take values from configure.ac.
parent
54de9c06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
cmake/CMakeLists.txt
cmake/CMakeLists.txt
+7
-3
No files found.
cmake/CMakeLists.txt
View file @
45de11f0
project
(
dbus
)
set
(
DBUS_MAJOR_VERSION
"1"
)
set
(
DBUS_MINOR_VERSION
"4"
)
set
(
DBUS_MICRO_VERSION
"3"
)
#########################################################################
# detect version
#########################################################################
file
(
READ ../configure.ac configure_ac
)
string
(
REGEX REPLACE
".*dbus_major_version], .([0-9]+).*"
"
\\
1"
DBUS_MAJOR_VERSION
${
configure_ac
}
)
string
(
REGEX REPLACE
".*dbus_minor_version], .([0-9]+).*"
"
\\
1"
DBUS_MINOR_VERSION
${
configure_ac
}
)
string
(
REGEX REPLACE
".*dbus_micro_version], .([0-9]+).*"
"
\\
1"
DBUS_MICRO_VERSION
${
configure_ac
}
)
# used by file version info
set
(
DBUS_PATCH_VERSION
"0"
)
set
(
DBUS_VERSION
${
DBUS_MAJOR_VERSION
}
.
${
DBUS_MINOR_VERSION
}
.
${
DBUS_MICRO_VERSION
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment