diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index 0222f6dee1..fe8b232036 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -400,6 +400,7 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
msw/genrcdefs.h
+
$(_COMPILER)
cl
@@ -608,8 +609,8 @@ $(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\r
WXDLLNAME=$(WXDLLNAME)
- $(TOP_SRCDIR)include
$(RCDEFDIR)
+ $(TOP_SRCDIR)include
$(WXTOPDIR)src/msw/version.rc
diff --git a/build/bakefiles/common_samples.bkl b/build/bakefiles/common_samples.bkl
index a211e9dcf6..0633b53fe4 100644
--- a/build/bakefiles/common_samples.bkl
+++ b/build/bakefiles/common_samples.bkl
@@ -35,8 +35,8 @@
- $(TOP_SRCDIR)include
$(RCDEFDIR)
+ $(TOP_SRCDIR)include
$(WXTOPDIR)samples/sample.rc