mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
* BugFix: Correct an error that can cause portions of the template to not be copied.
This commit is contained in:
parent
0b15bc25e0
commit
372a79c8f7
1 changed files with 4 additions and 5 deletions
|
|
@ -15,9 +15,8 @@ foreach(ITEM ${SCRIPT_FILES})
|
|||
STRING(REGEX REPLACE "${CMAKE_SOURCE_DIR}/Templates/${TORQUE_TEMPLATE}/" "${TORQUE_APP_ROOT_DIRECTORY}/" INSTALL_DIR ${dir})
|
||||
STRING(REGEX REPLACE ".tscript" ".${TORQUE_SCRIPT_EXTENSION}" newScriptName ${scriptName})
|
||||
|
||||
# We can't use the file(COPY command to copy to a new file name so we copy as-is first then rename
|
||||
file(COPY ${ITEM} DESTINATION ${INSTALL_DIR})
|
||||
file(RENAME ${INSTALL_DIR}/${scriptName} ${INSTALL_DIR}/${newScriptName})
|
||||
# Copy the file and perform a rename at the same time
|
||||
file(COPY_FILE ${ITEM} ${INSTALL_DIR}/${newScriptName})
|
||||
endforeach()
|
||||
|
||||
# Once the full tree is installed, perform configurations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue