forked from bartvdbraak/blender
Patch #27225: blenderplayer resource compilation error fix for cmake + mingw,
patch by Ryakiotakis Antonis.
This commit is contained in:
parent
ba5d18b41f
commit
576035f9e1
@ -43,13 +43,25 @@ if(WIN32 AND NOT UNIX)
|
||||
string(SUBSTRING ${BLENDER_VERSION} 0 1 bver1)
|
||||
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_1=${bver1}
|
||||
-DBLEN_VER_RC_2=${bver2}
|
||||
-DBLEN_VER_RC_3=${bver3}
|
||||
-DBLEN_VER_RC_4=0
|
||||
)
|
||||
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(
|
||||
-DBLEN_VER_RC_STR=${BLENDER_VERSION}
|
||||
-DBLEN_VER_RC_1=${bver1}
|
||||
-DBLEN_VER_RC_2=${bver2}
|
||||
-DBLEN_VER_RC_3=${bver3}
|
||||
-DBLEN_VER_RC_4=0
|
||||
)
|
||||
endif()
|
||||
|
||||
add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc)
|
||||
else()
|
||||
add_executable(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c)
|
||||
|
Loading…
Reference in New Issue
Block a user