Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-03-23 23:47:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-23 23:49:17 +0300
commitda5fb82a63ea95f75e42092bee60027d3706c9ce (patch)
treec93d98852d9e46db61cbd3d6c1c76a42fca2c1c6 /source/creator
parent0737f59f6273d7c61b23679c8f4736fe25da6da2 (diff)
CMake: readme.html version trick broke packages
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt36
1 files changed, 17 insertions, 19 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 57e67a971d3..1557cc08182 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -239,28 +239,13 @@ if(WITH_BUILDINFO)
add_dependencies(blender buildinfo)
endif()
-# Post build steps for bundling/packaging.
-
-function(install_text_files_patch path)
- install(
- CODE
- "
- set(DATA_FILE \"${path}/readme.html\")
- file(READ \"\${DATA_FILE}\" DATA_SRC)
- string(REGEX REPLACE \"BLENDER_VERSION\" \"${BLENDER_VERSION}\" DATA_DST \"\${DATA_SRC}\")
- file(WRITE \"\${DATA_FILE}\" \"\${DATA_DST}\")
- unset(DATA_FILE)
- unset(DATA_SRC)
- unset(DATA_DST)
- "
- )
-endfunction()
set(BLENDER_TEXT_FILES
${CMAKE_SOURCE_DIR}/release/text/GPL-license.txt
${CMAKE_SOURCE_DIR}/release/text/Python-license.txt
${CMAKE_SOURCE_DIR}/release/text/copyright.txt
- ${CMAKE_SOURCE_DIR}/release/text/readme.html
+ # generate this file
+ # ${CMAKE_SOURCE_DIR}/release/text/readme.html
${CMAKE_SOURCE_DIR}/release/datafiles/LICENSE-bfont.ttf.txt
)
@@ -972,12 +957,25 @@ endif()
# Generic Install, for all targets
if(DEFINED BLENDER_TEXT_FILES_DESTINATION)
+
+ install(
+ CODE
+ "
+ file(READ \"${CMAKE_SOURCE_DIR}/release/text/readme.html\" DATA_SRC)
+ string(REGEX REPLACE \"BLENDER_VERSION\" \"${BLENDER_VERSION}\" DATA_DST \"\${DATA_SRC}\")
+ file(WRITE \"\${CMAKE_BINARY_DIR}/release/text/readme.html\" \"\${DATA_DST}\")
+ unset(DATA_SRC)
+ unset(DATA_DST)
+ "
+ )
+ list(APPEND BLENDER_TEXT_FILES
+ ${CMAKE_BINARY_DIR}/release/text/readme.html
+ )
+
install(
FILES ${BLENDER_TEXT_FILES}
DESTINATION "${BLENDER_TEXT_FILES_DESTINATION}"
)
-
- install_text_files_patch("\${CMAKE_INSTALL_PREFIX}/${BLENDER_TEXT_FILES_DESTINATION}")
endif()
# install more files specified elsewhere