Browse Source

Enables support for having your project directory different to your Torque engine directory.

Joseph 4 years ago
parent
commit
4c781ce5c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tools/CMake/basics.cmake

+ 1 - 1
Tools/CMake/basics.cmake

@@ -32,7 +32,7 @@ if(NOT TORQUE_TEMPLATE)
     set(TORQUE_TEMPLATE "BaseGame" CACHE STRING "the template to use")
     set(TORQUE_TEMPLATE "BaseGame" CACHE STRING "the template to use")
 endif()
 endif()
 if(NOT TORQUE_APP_DIR)
 if(NOT TORQUE_APP_DIR)
-    set(TORQUE_APP_DIR "${CMAKE_SOURCE_DIR}/My Projects/${TORQUE_APP_NAME}")
+    set(TORQUE_APP_DIR "${CMAKE_BINARY_DIR}")
 endif()
 endif()
 if(NOT projectOutDir)
 if(NOT projectOutDir)
     set(projectOutDir "${TORQUE_APP_DIR}/game")
     set(projectOutDir "${TORQUE_APP_DIR}/game")