The build rule to run the resource compiler on Windows with a Makefiles generator should include the placeholder to add the definition flags. See issue #7769.