diff --git a/ports/windows/msvc/genhdr.targets b/ports/windows/msvc/genhdr.targets
index ee030c9063..fa3e95e41b 100644
--- a/ports/windows/msvc/genhdr.targets
+++ b/ports/windows/msvc/genhdr.targets
@@ -15,6 +15,8 @@
$(DestDir)qstrdefscollected.h
$(DestDir)qstrdefs.generated.h
python
+ cl.exe
+ $([System.IO.Path]::Combine(`$(CLToolPath)`, `$(CLToolExe)`))
@@ -73,7 +75,7 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) {
-
@@ -85,7 +87,7 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) {
$(QstrGen).tmp
-
+