diff --git a/release/text/readme.html b/release/text/readme.html index 3972f137d8e..6048dd78e6b 100644 --- a/release/text/readme.html +++ b/release/text/readme.html @@ -18,7 +18,7 @@
-Blender BLENDER_VERSION
+Blender @BLENDER_VERSION@
About
@@ -36,10 +36,10 @@ The entire source code is available on our website. For more information, visit blender.org.
BLENDER_VERSION
+@BLENDER_VERSION@
-The Blender Foundation and online developer community is proud to present Blender BLENDER_VERSION. - +The Blender Foundation and online developer community is proud to present Blender @BLENDER_VERSION@. + More information about this release.
General information
www.blender.org
-Release Notes
-wiki.blender.org/wiki/Reference/Release_Notes/BLENDER_VERSION
+Release Notes
+wiki.blender.org/wiki/Reference/Release_Notes/@BLENDER_VERSION@
Tutorials
www.blender.org/support/tutorials/
Manual https://docs.blender.org/manual/en/latest/
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index e804db05687..e6e122508a9 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -1130,15 +1130,9 @@ endif()
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)
- "
+ configure_file(${CMAKE_SOURCE_DIR}/release/text/readme.html
+ ${CMAKE_BINARY_DIR}/release/text/readme.html
+ @ONLY
)
list(APPEND BLENDER_TEXT_FILES
${CMAKE_BINARY_DIR}/release/text/readme.html