fix of cmake rules for mac, from sirdude

This commit is contained in:
Xiao Xiangquan 2011-07-30 14:05:48 +00:00
parent 287b24926f
commit 66d1707293
2 changed files with 13 additions and 1 deletions

@ -218,6 +218,13 @@ if(WITH_OPENCOLLADA)
add_definitions(-DWITH_COLLADA)
endif()
if(WITH_INTERNATIONAL)
list(APPEND INC_SYS ${GETTEXT_INC})
add_definitions(-DINTERNATIONAL)
link_directories(${GETTEXT_LIBPATH})
link_directories(${ICONV_LIBPATH})
endif()
# Build makesrna executable
blender_include_dirs(
.
@ -243,7 +250,11 @@ blender_include_dirs_sys(
)
add_executable(makesrna ${SRC} ${SRC_RNA_INC} ${SRC_DNA_INC})
target_link_libraries(makesrna bf_dna)
if (WITH_INTERNATIONAL)
target_link_libraries(makesrna bf_dna ${GETTEXT_LIB} ${PLATFORM_LINKFLAGS})
else()
target_link_libraries(makesrna bf_dna)
endif()
# Output rna_*_gen.c
# note (linux only): with crashes try add this after COMMAND: valgrind --leak-check=full --track-origins=yes

@ -352,6 +352,7 @@ if(UNIX AND NOT APPLE)
)
if(WITH_INTERNATIONAL)
install(
FILES ${CMAKE_SOURCE_DIR}/release/bin/.blender/.Blanguages
DESTINATION ${TARGETDIR_VER}