# empty output on build command

**URL:** https://discourse.cmake.org/t/empty-output-on-build-command/859
**Category:** Usage
**Created:** [March 25, 2020, 3:50pm UTC](https://discourse.cmake.org/t/empty-output-on-build-command/859 "2020-03-25T15:50:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amigo421](https://discourse.cmake.org/user_avatar/discourse.cmake.org/amigo421/32/444_2.png) [@amigo421](https://discourse.cmake.org/u/amigo421)
#### Post date: [March 25, 2020, 3:50pm UTC](https://discourse.cmake.org/t/empty-output-on-build-command/859/1 "2020-03-25T15:50:06Z")

</div>

platform: Win10  
cmake: 3.17  
compiler: msvc2019  
generator : NMake Makefiles - CodeBlocks

sources: simple main.c with printf Hello World (no third-pathy libraries)  
I inserted one simple typo to make the source wrong - removed ‘;’ from printf()

generating step is okay, no issues  
if I enter to build subfolder and type “nmake” , all fine - I see compilation log and error message  
however if I use something like : "cmake --build . "  
then no any messages , it hangs for a seconds for a usual build process but after that I see nothing.

any idea why it happens and how to fix .

let me know pls if more details required.

thanks a lot

---

<div class="post-metadata">

### Author: ![anon45792294](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@anon45792294](https://discourse.cmake.org/u/anon45792294)
#### Post date: [March 29, 2020, 6:11am UTC](https://discourse.cmake.org/t/empty-output-on-build-command/859/2 "2020-03-29T06:11:10Z")

</div>

Can you provide a tiny project on github?

I don’t think this is enough information to investigate.

---

<div class="post-metadata">

### Author: ![amigo421](https://discourse.cmake.org/user_avatar/discourse.cmake.org/amigo421/32/444_2.png) [@amigo421](https://discourse.cmake.org/u/amigo421)
#### Post date: [March 31, 2020, 10:24am UTC](https://discourse.cmake.org/t/empty-output-on-build-command/859/3 "2020-03-31T10:24:29Z")

</div>

hi

thank you for the response,  
previously I’ve posted the same question on stackoverflow [here](https://stackoverflow.com/questions/60837774/cmake-build-command-produces-empty-output)  
with the sources.

unfortunately I suppose it can’t help because this is a pure sample HelloWorld generated by IDE and successfully compiled on any other Windows host which I have.

I’m continuing the investigation and found odd thing :  
cmake build command pops up one more real/native build console with nmake and verbose output.  
I’ve added verbose flag to cmake , without that it works quick so that was a reason why I didn’t see this previously. and why my IDE (clion) could read nothing from the output.

I suppose this is some system setting - to forcely start console apps in child console…  
I’ll dig into this way
