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)
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.
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.
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