workaround for building blender with mingw, was giving syntax error, for now just...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 1 Apr 2011 06:56:45 +0000 (06:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 1 Apr 2011 06:56:45 +0000 (06:56 +0000)
source/creator/CMakeLists.txt
source/icons/winblender.rc

index 7e30e19..1678edc 100644 (file)
@@ -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}
index 244c2cb..ea9285d 100644 (file)
@@ -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)"