Hi! On 27.02.2008 15:20, Vadim Lebedev wrote: > Darshaka Pathirana wrote: >> On 27.01.2008 13:35, Andreas Schneider wrote: >>> Darshaka Pathirana wrote: >>> >>>> 2. The Visual C++ compiler option "-D" do strip the quotes on the >>>> command line[2] so this must be handled by a define in "phapi.c". >>>> >>>> [2] http://msdn2.microsoft.com/en-us/library/hhzbb5c8(VS.80).aspx >>> >>> That's bad, have you tried to escape them? There should be another >>> way to do that. >> >> As I still have no good solution on passing the mercurial revision >> to the code when building with Visual Studio 2005 it is important to >> have a workaround 'cause without the patch the code stays >> uncompilable. >> >> My workaround sets the revision to 0 if the compiler is VC++. >> >> A better solution I can think of is to read a external file (like >> #include <hg_revision.h>) which is generated by an >> cmake-pre-build-process. Maybe somebody knows how to do that as my >> knowledge on CMake is merely humble. > > Actually it works perfectly well the SVN_VERSION variable holds > merucrial rev hash now
Yes. The mercurial-revision is in the SVN_VERSION variable. That works fine. But the actual problem is that the Visual C++ compiler can not handle quotes with the "-D" option. So we have to think of something else to pass the revision into the code. Greetings, - Darsha _______________________________________________ Wengophone-devel mailing list [email protected] http://dev.openwengo.com/mailman/listinfo/wengophone-devel
