workaround for building blender with mingw, was giving syntax error, for now just dont include blender version in the exe for mingw

This commit is contained in:
Campbell Barton 2011-04-01 06:56:45 +00:00
parent 9999c958c8
commit 308f813f3a
2 changed files with 6 additions and 1 deletions

@ -105,7 +105,7 @@ if(WIN32 AND NOT UNIX)
string(SUBSTRING ${BLENDER_VERSION} 2 1 bver2)
string(SUBSTRING ${BLENDER_VERSION} 3 1 bver3)
add_definitions(
-DBLEN_VER_RC_STR="${BLENDER_VERSION}"
-DBLEN_VER_RC_STR_M=${BLENDER_VERSION}
-DBLEN_VER_RC_1=${bver1}
-DBLEN_VER_RC_2=${bver2}
-DBLEN_VER_RC_3=${bver3}

@ -23,8 +23,13 @@ BEGIN
BEGIN
BLOCK "04090000"
BEGIN
#ifdef FREE_WINDOWS // this doesnt work for mingw.
VALUE "FileVersion", "Unknown"
VALUE "ProductVersion", "Unknown"
#else
VALUE "FileVersion", BLEN_VER_RC_STR
VALUE "ProductVersion", BLEN_VER_RC_STR
#endif
VALUE "CompanyName", "Blender Foundation"
VALUE "FileDescription", "Blender"
VALUE "LegalCopyright", "GPLv2 (Blender Foundation)"