summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmcldeps.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index 193a2e0..a665f89 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -694,20 +694,22 @@ int main() {
fprintf(stderr, "\n\n");
#endif
+ std::string showflag = " /showIncludes /nologo ";
if (lang != "RC") {
return process(srcfile, dfile, objfile, prefix,
- binpath + " /showIncludes " + rest);
+ binpath + showflag + rest);
} else {
// "misuse" cl.exe to get headers from .rc files
// rc: /fo x\CMakeFiles\x.dir\x.rc.res src\x\x.rc
// cl: /out:x\CMakeFiles\x.dir\x.rc.res.dep.obj /Tc src\x\x.rc
- cl = "\"" + cl + "\" /P /DRC_INVOKED /showIncludes " +
+ cl = "\"" + cl + "\" /P /DRC_INVOKED " + showflag +
replace(rest, "/fo" + objfile, "/out:" + objfile + ".dep.obj /Tc ");
int ret;
ret = process(srcfile, dfile, objfile, prefix, cl, true);
- ret = process(srcfile, "" , objfile, prefix, binpath + " " + rest);
+ ret = process(srcfile, "" , objfile, prefix,
+ binpath + " /nologo " + rest);
return ret;
}