On 04/04/2018 03:30 AM, Mathieu Westphal wrote:
> Is there a way, using cmake, to start a gui command on windows
> and have the gui shows up ?

```
execute_process(COMMAND cmd /c notepad)
```

> If not, is this intended?

Yes.  Otherwise console windows appear for everything.

CreateProcessW is *the* way to create a process on Windows.
It has flags to control whether a window is shown, and we
intentionally set them to not show the window.

> Could we have this feature ?

The `cmd /c` workaround should be sufficient, but it wouldn't be
hard to add an option to the execute_process command to allow
the window to be shown.

-Brad
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers

Reply via email to