Jelajahi Sumber

CMake NMake fix to place exe in game directory

wcb 10 tahun lalu
induk
melakukan
845ec9c452
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      Tools/CMake/basics.cmake

+ 1 - 0
Tools/CMake/basics.cmake

@@ -393,6 +393,7 @@ endif()
 
 # fix the debug/release subfolders on windows
 if(MSVC)
+    SET("CMAKE_RUNTIME_OUTPUT_DIRECTORY" "${projectOutDir}")
     FOREACH(CONF ${CMAKE_CONFIGURATION_TYPES})
         # Go uppercase (DEBUG, RELEASE...)
         STRING(TOUPPER "${CONF}" CONF)