forked from bartvdbraak/blender
OSX/cmake: set actual compilation date to macosx bundles, fix player bundle with lbiomp5 ( do we really need this in player? )
This commit is contained in:
parent
90f3102f9c
commit
b505ecaa4e
@ -813,6 +813,14 @@ elseif(APPLE)
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING ${BLENDER_VERSION}
|
||||
MACOSX_BUNDLE_LONG_VERSION_STRING "${BLENDER_VERSION} ${BLENDER_DATE}")
|
||||
|
||||
# Gather the date in finder-style
|
||||
execute_process(COMMAND date "+%m/%d/%Y/%H:%M"
|
||||
OUTPUT_VARIABLE SETFILE_DATE
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
# Give the bundle actual creation/modification date
|
||||
execute_process(COMMAND SetFile -d ${SETFILE_DATE} -m ${SETFILE_DATE} ${EXECUTABLE_OUTPUT_PATH}/blender.app)
|
||||
|
||||
install(
|
||||
TARGETS blender
|
||||
DESTINATION "."
|
||||
@ -896,6 +904,9 @@ elseif(APPLE)
|
||||
"file(REMOVE_RECURSE ${PLAYER_TARGETDIR_VER})"
|
||||
)
|
||||
|
||||
# Give the bundle actual creation/modification date
|
||||
execute_process(COMMAND SetFile -d ${SETFILE_DATE} -m ${SETFILE_DATE} ${EXECUTABLE_OUTPUT_PATH}/blenderplayer.app)
|
||||
|
||||
install(
|
||||
FILES ${OSX_APP_PLAYER_SOURCEDIR}/Contents/PkgInfo
|
||||
DESTINATION blenderplayer.app/Contents
|
||||
@ -906,6 +917,14 @@ elseif(APPLE)
|
||||
blenderplayer.app/Contents/
|
||||
)
|
||||
|
||||
if(WITH_OPENMP AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS '3.4')
|
||||
install(
|
||||
FILES ${LIBDIR}/openmp/lib/libiomp5.dylib
|
||||
DESTINATION blenderplayer.app/Contents/Resources/lib/
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
# python
|
||||
if(WITH_PYTHON AND NOT WITH_PYTHON_FRAMEWORK)
|
||||
add_custom_command(
|
||||
|
Loading…
Reference in New Issue
Block a user