Browse Source

Add debug postfix for main executables on Windows platform. Closes #113.

Yao Wei Tjong 姚伟忠 12 years ago
parent
commit
029d5a9197
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/CMake/Modules/Urho3D-CMake-magic.cmake

+ 3 - 0
Source/CMake/Modules/Urho3D-CMake-magic.cmake

@@ -513,6 +513,9 @@ macro (setup_main_executable)
             setup_macosx_linker_flags (CMAKE_EXE_LINKER_FLAGS)
         endif ()
         setup_executable (${EXE_TYPE})
+        if (WIN32)
+            set_target_properties (${TARGET_NAME} PROPERTIES DEBUG_POSTFIX _d)
+        endif ()
     endif ()
     
     if (IOS)