[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23457] trunk/blender: add buildinfo to cmake (no win32 support)

Campbell Barton ideasman42 at gmail.com
Wed Oct 7 11:00:43 CEST 2009


Hi thanks for the patch, I was wondering why we need winbuildinfo.h now,
wouldn't it be easier to use defines for that too? anyone remember why
it was done this way?

On Wed, Oct 7, 2009 at 10:46 AM, lguillaume <lecocqguillaume at gmail.com> wrote:
> Hello,
>
> I search to enable this for windows with cmake.
> In cmakelists.txt in the root directory, I had :
>
> EXEC_PROGRAM("cmd /c date /t" OUTPUT_VARIABLE BUILD_DATE)
> EXEC_PROGRAM("cmd /c time /t" OUTPUT_VARIABLE BUILD_TIME)
>
>
> The function for the date didn't return the date in the format YY/MM/DD but
> in the format of the system.
>
> I made a function to create a winbuildinfo.h file, but msvc does not compile
> with it, but if I use only the variable like linux does it works.
>
> The patch can't be used because I remove the use of the winbuildinfo.h,
> scons use it but perhaps scons can use directly the variables.
> I don't use scons to test without creating the header file.
> The patch have the header file generation.
>
> Patch can be found at
> http://lecocqguillaume.chez-alice.fr/builddate_cmake_msvc.diff
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell


More information about the Bf-committers mailing list