Re: [CMake] CMake GUI "Stop" button does not halt exec_process

2019-01-11 Thread Person Withhats
More info on my setup: Windows 10 CMake script via CMakeLists.txt files Executing a Python script PyInstalled into a .exe for windows use -> Downloads and untars some SDK's and shows progress (plus a bit more) but takes 40-70 minutes average. Canceling CMake won't cancel python script. -- Powere

Re: [CMake] CMake GUI "Stop" button does not halt exec_process

2019-01-11 Thread Person Withhats
Linux you can use prctl(PR_SET_PDEATHSIG, SIGKILL) in the child >> process (between fork() and exec()) to achieve this. >> >> On Thu, 10 Jan 2019 at 22:17, Person Withhats >> wrote: >> >>> Pressing "STOP" in the CMake GUI interface halts CMake itse

[CMake] CMake GUI "Stop" button does not halt exec_process

2019-01-10 Thread Person Withhats
Pressing "STOP" in the CMake GUI interface halts CMake itself but does not stop any execute_process that is going on at the time. This makes it hang until the process finishes, since no interrupt is sent.. Aggravating when you're using an exterior script (e.g. a .exe or .py) that e.g. handles

Re: [CMake] Carriage returns in CMake GUI + Stopping execute_process()

2018-12-22 Thread Person Withhats
amp; file. On Sat, Dec 22, 2018 at 2:56 PM frodak17 wrote: > > > On Sat, Dec 22, 2018 at 5:17 PM Person Withhats > wrote: > >> >> 2) Pressing 'Stop' does not halt processes spun up by execute_process, >> CMake waits until they finish before exiting

[CMake] Carriage returns in CMake GUI + Stopping execute_process()

2018-12-22 Thread Person Withhats
2 questions: 1) I'm printing download progress via carrige returns, but the CMake GUI does it like this. Anyway to get output to work properly? 21561344 [2.77%] 21626880 [2.77%] 21692416 [2.78%] 21757952 [2.79%] 21823488 [2.80%] 21889024 [2.81%] 21954560 [2.82%] 22020096 [2.82%] 22085632 [2

Re: [CMake] Handling real-time output from execute_process

2018-12-22 Thread Person Withhats
Fixed extra spaces, was due to buffer (had to strip line endings). I'mma make a new thread this mess is my fault. On Sat, Dec 22, 2018 at 11:03 AM Person Withhats wrote: > Oops, forgot to add mailing list. > > Also, here's some sample CMake output that shows some issues.

Re: [CMake] Handling real-time output from execute_process

2018-12-22 Thread Person Withhats
Cmake GUI output* On Sat, Dec 22, 2018 at 11:03 AM Person Withhats wrote: > Oops, forgot to add mailing list. > > Also, here's some sample CMake output that shows some issues. > 1) Carrige return doesn't replace previous line of output == tons of %'s > 2) Perhap

Re: [CMake] Handling real-time output from execute_process

2018-12-22 Thread Person Withhats
es 65536 [0.01%] 131072 [0.02%] 196608 [0.03%] 262144 [0.03%] On Fri, Dec 21, 2018 at 11:56 PM frodak17 wrote: > > > On Fri, Dec 21, 2018 at 11:16 PM Person Withhats < > personwithha...@gmail.com> wrote: > >> 1) I want output in real time on a Windows system(no t

Re: [CMake] Handling real-time output from execute_process

2018-12-21 Thread Person Withhats
n. On Fri, Dec 21, 2018 at 7:26 PM frodak17 wrote: > > > On Fri, Dec 21, 2018 at 8:30 PM Person Withhats > wrote: > >> Hey there! >> >> I'm running a script that downloads some files and untars them. This >> takes a while but it outputs progress. Unfo

[CMake] Handling real-time output from execute_process

2018-12-21 Thread Person Withhats
Hey there! I'm running a script that downloads some files and untars them. This takes a while but it outputs progress. Unfortunately I can't get the output to show up in real-time with CMake GUI or CLI. Current workaround to see output live, loses it in log though.. execute_process(COMMAN

[CMake] Tracking progress of CMake TAR

2018-12-16 Thread Person Withhats
When running tar via CMake (in order to use cross-platform work-ability and what not) it'd be great to have a progress bar of any sort. It's awkward to wait 30-60 minutes for file untarring with absolutely 0 information. I'm not aware of any way to do this through CMake directly, only alternative

[CMake] Tracking progress of CMake-ran TAR

2018-12-14 Thread Person Withhats
When tarting files from CMake (in order to use cross-platform work-ability and what not) it'd be great to have a progress bar of any sort. It's awkward to wait 30-60 minutes for file untarring with absolutely 0 information. I'm not aware of any way to do this through CMake directly, only alternati