瀏覽代碼

Corrects an issue where a change to the target template may not generate the appropriate main.cs for that template after the initial build configure.

Areloch 8 年之前
父節點
當前提交
1788bee4f6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Tools/CMake/torque3d.cmake

+ 1 - 1
Tools/CMake/torque3d.cmake

@@ -624,7 +624,7 @@ endif()
 if(NOT EXISTS "${projectOutDir}/${PROJECT_NAME}.torsion")
     CONFIGURE_FILE("${cmakeDir}/template.torsion.in" "${projectOutDir}/${PROJECT_NAME}.torsion")
 endif()
-if(EXISTS "${CMAKE_SOURCE_DIR}/Templates/${TORQUE_TEMPLATE}/game/main.cs.in" AND NOT EXISTS "${projectOutDir}/main.cs")
+if(EXISTS "${CMAKE_SOURCE_DIR}/Templates/${TORQUE_TEMPLATE}/game/main.cs.in")
     CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/Templates/${TORQUE_TEMPLATE}/game/main.cs.in" "${projectOutDir}/main.cs")
 endif()
 if(WIN32)