# How to hide terminal window in release build mode?

**URL:** <https://discourse.slicer.org/t/how-to-hide-terminal-window-in-release-build-mode/11631>\
**Category:** Development\
**Created:** [May 20, 2020, 8:39am UTC](https://discourse.slicer.org/t/how-to-hide-terminal-window-in-release-build-mode/11631 "2020-05-20T08:39:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leemoncn](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leemoncn/32/5706_2.png) [@leemoncn](https://discourse.slicer.org/u/leemoncn)\
**Post date:** [May 20, 2020, 8:39am UTC](https://discourse.slicer.org/t/how-to-hide-terminal-window-in-release-build-mode/11631/1 "2020-05-20T08:39:36Z")

</div>

I build slicer 4.10.2 in release mode. When i run slicer, it still have terminal window. How to hide terminal in release build mode?(OS: Windows 10)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [May 20, 2020, 9:26am UTC](https://discourse.slicer.org/t/how-to-hide-terminal-window-in-release-build-mode/11631/2 "2020-05-20T09:26:14Z")

</div>

I believe you need to disable the “Slicer\_BUILD\_WIN32\_CONSOLE” CMake variable.

By the way, I strongly suggest using a recent preview version. 4.10.2 is more than a year and a half old, and the current preview is quite stable, given that we are approaching 5.0.

---

<div class="post-metadata">

**Author:** ![JiaLei](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jialei/32/11907_2.png) [@JiaLei](https://discourse.slicer.org/u/JiaLei)\
**Post date:** [October 13, 2021, 6:51am UTC](https://discourse.slicer.org/t/how-to-hide-terminal-window-in-release-build-mode/11631/3 "2021-10-13T06:51:34Z")

</div>

I build release mode by the latest version of Slicer on Windows10, and I set cmake variable “-DSlicer\_BUILD\_WIN32\_CONSOLE:BOOL=OFF”. But the terminal still exists.

My commands:

```auto
C:\D\S4R> cmake -A x64 -DCMAKE_BUILD_TYPE:STRING=Release -DQt5_DIR:PATH=C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5 -DSlicer_BUILD_WIN32_CONSOLE:BOOL=OFF C:\D\S4
C:\D\S4R> cmake --build . --config Release

```
