Patch #27225: blenderplayer resource compilation error fix for cmake + mingw,

patch by Ryakiotakis Antonis.
This commit is contained in:
Brecht Van Lommel 2011-05-06 08:16:44 +00:00
parent ba5d18b41f
commit 576035f9e1

@ -43,6 +43,16 @@ if(WIN32 AND NOT UNIX)
string(SUBSTRING ${BLENDER_VERSION} 0 1 bver1) string(SUBSTRING ${BLENDER_VERSION} 0 1 bver1)
string(SUBSTRING ${BLENDER_VERSION} 2 1 bver2) string(SUBSTRING ${BLENDER_VERSION} 2 1 bver2)
string(SUBSTRING ${BLENDER_VERSION} 3 1 bver3) string(SUBSTRING ${BLENDER_VERSION} 3 1 bver3)
if(MINGW)
add_definitions(
-DWINDRES
-DBLEN_VER_RC_STR_M=${BLENDER_VERSION}
-DBLEN_VER_RC_1=${bver1}
-DBLEN_VER_RC_2=${bver2}
-DBLEN_VER_RC_3=${bver3}
-DBLEN_VER_RC_4=0
)
else()
add_definitions( add_definitions(
-DBLEN_VER_RC_STR=${BLENDER_VERSION} -DBLEN_VER_RC_STR=${BLENDER_VERSION}
-DBLEN_VER_RC_1=${bver1} -DBLEN_VER_RC_1=${bver1}
@ -50,6 +60,8 @@ if(WIN32 AND NOT UNIX)
-DBLEN_VER_RC_3=${bver3} -DBLEN_VER_RC_3=${bver3}
-DBLEN_VER_RC_4=0 -DBLEN_VER_RC_4=0
) )
endif()
add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc) add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc)
else() else()
add_executable(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c) add_executable(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c)