diff --git a/src/porting.cpp b/src/porting.cpp
index 223299892bb45fe2bff09132f597c2f2130b11a3..fd1915b0d6a62c5d4f81970a7eb87a8ffbf1e42d 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -163,6 +163,8 @@ bool detectMSVCBuildDir(const std::string &path)
 {
 	const char *ends[] = {
 		"bin\\Release",
+		"bin\\MinSizeRel",
+		"bin\\RelWithDebInfo",
 		"bin\\Debug",
 		"bin\\Build",
 		NULL