Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
1ba93d41
Unverified
Commit
1ba93d41
authored
Nov 12, 2019
by
Joseph Mirabel
Committed by
GitHub
Nov 12, 2019
Browse files
[Python] __version__ contains clean version number
parent
ee5c1607
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/version.cc
View file @
1ba93d41
...
...
@@ -4,6 +4,7 @@
#include
"hpp/fcl/config.hh"
#include
<boost/python.hpp>
#include
<boost/preprocessor/stringize.hpp>
namespace
bp
=
boost
::
python
;
...
...
@@ -24,7 +25,9 @@ inline bool checkVersionAtMost(unsigned int major,
void
exposeVersion
()
{
// Define release numbers of the current hpp-fcl version.
bp
::
scope
().
attr
(
"__version__"
)
=
HPP_FCL_VERSION
;
bp
::
scope
().
attr
(
"__version__"
)
=
BOOST_PP_STRINGIZE
(
HPP_FCL_MAJOR_VERSION
)
"."
BOOST_PP_STRINGIZE
(
HPP_FCL_MINOR_VERSION
)
"."
BOOST_PP_STRINGIZE
(
HPP_FCL_PATCH_VERSION
);
bp
::
scope
().
attr
(
"HPP_FCL_MAJOR_VERSION"
)
=
HPP_FCL_MAJOR_VERSION
;
bp
::
scope
().
attr
(
"HPP_FCL_MINOR_VERSION"
)
=
HPP_FCL_MINOR_VERSION
;
bp
::
scope
().
attr
(
"HPP_FCL_PATCH_VERSION"
)
=
HPP_FCL_PATCH_VERSION
;
...
...
Write
Preview
Supports
Markdown
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