Skip to content
Snippets Groups Projects
Unverified Commit 1ba93d41 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub
Browse files

[Python] __version__ contains clean version number

parent ee5c1607
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment