Hi,

M Gagnon a écrit :
> Hi,
>
> as you might know Plorf and me are trying to use CMake to build the mac 
> version of wormux (since it's more flexible and easier than autotools so 
> easier to get where we want) and everything is working fine, except one 
> major problem : apparently, when building with CMake, the version number 
> is not correctly compiled in. For instance, even though we are building 
> from the 0.8 tag, the CMake build in the end will say it is '0.8svn'. 
> This can be major since the network can reject players for not using 0.8 
> while they actually are. Can someone who knows the CMake build system 
> better than I do take a look at it?
>   

I'm not sure to know CMake better than you since I'm still not using it. 
Anyway, I'm trying to understand it and I discover in file CMakeLists.txt :
# Project name
PROJECT(Wormux)
SET(WORMUX_MAJOR "0")
SET(WORMUX_MINOR "8")
SET(WORMUX_PATCH "svn")
SET(VERSION "${WORMUX_MAJOR}.${WORMUX_MINOR}${WORMUX_PATCH}")

So, I suppose the 0.8svn version comes from here.

Regards,

Matt (gentildemon)

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à