mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +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
|
|
@ -5,7 +5,7 @@ endforeach()
|
||||||
|
|
||||||
# Perform installation minus scripts
|
# Perform installation minus scripts
|
||||||
file(COPY "game" "source" DESTINATION "${TORQUE_APP_ROOT_DIRECTORY}" PATTERN "*.tscript" EXCLUDE PATTERN
|
file(COPY "game" "source" DESTINATION "${TORQUE_APP_ROOT_DIRECTORY}" PATTERN "*.tscript" EXCLUDE PATTERN
|
||||||
PATTERN "*.in" EXCLUDE PATTERN)
|
PATTERN "*.in" EXCLUDE PATTERN)
|
||||||
# Enumerate scripts and install with extension
|
# Enumerate scripts and install with extension
|
||||||
file(GLOB_RECURSE SCRIPT_FILES "game/*.tscript")
|
file(GLOB_RECURSE SCRIPT_FILES "game/*.tscript")
|
||||||
foreach(ITEM ${SCRIPT_FILES})
|
foreach(ITEM ${SCRIPT_FILES})
|
||||||
|
|
@ -15,10 +15,9 @@ foreach(ITEM ${SCRIPT_FILES})
|
||||||
STRING(REGEX REPLACE "${CMAKE_SOURCE_DIR}/Templates/${TORQUE_TEMPLATE}/" "${TORQUE_APP_ROOT_DIRECTORY}/" INSTALL_DIR ${dir})
|
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})
|
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
|
# Copy the file and perform a rename at the same time
|
||||||
file(COPY ${ITEM} DESTINATION ${INSTALL_DIR})
|
file(COPY_FILE ${ITEM} ${INSTALL_DIR}/${newScriptName})
|
||||||
file(RENAME ${INSTALL_DIR}/${scriptName} ${INSTALL_DIR}/${newScriptName})
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# Once the full tree is installed, perform configurations
|
# Once the full tree is installed, perform configurations
|
||||||
CONFIGURE_FILE("game/main.tscript.in" "${TORQUE_APP_GAME_DIRECTORY}/main.${TORQUE_SCRIPT_EXTENSION}")
|
CONFIGURE_FILE("game/main.tscript.in" "${TORQUE_APP_GAME_DIRECTORY}/main.${TORQUE_SCRIPT_EXTENSION}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue