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

lguillaume lecocqguillaume at gmail.com
Wed Oct 7 10:46:23 CEST 2009


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


More information about the Bf-committers mailing list