diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3722bace30f50973ac53dec9939428902d14b27..9af56b7c46d2d1350b7e74abe3eb36d9e8d088cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,7 @@ set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix")
 project(glslang)
 
 if(WIN32)
+    set(CMAKE_DEBUG_POSTFIX "d")
     include(ChooseMSVCCRT.cmake)
     add_definitions(-DGLSLANG_OSINCLUDE_WIN32)
 elseif(UNIX)