On Fri, Dec 21, 2018 at 8:30 PM Person Withhats <personwithha...@gmail.com> wrote:
> 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(COMMAND "cmd" /c "start /wait download_sdks.exe" > WORKING_DIRECTORY "${SCRIPT_DIR}" > OUTPUT_VARIABLE OUT > RESULT_VARIABLE RES) > > Exit code is always 0 no matter what I do or how I get this set up. I want > to see the output as it's running (preferably in same cmake window) and for > the GUI stop-button to properly stop the script instead of hanging until > script ends by itself. > > Right now I can get the output at the end but after 1.5 hours of > untarring/etc. I'd be worried if it wasn't just frozen...... > > This is for windows 10 ofc and the .exe file is PyInstalled. Works fine > double-clicking (launches terminal/etc.) but Cmake....ugh...... > > tl;dr script runs and works fine as usual but I can't see output *while* > it's running instead of after. > How about use OUTPUT_FILE instead. Then while CMake is running you can do a tail -f on the output file in a different window or just check the contents in notepad. I don’t know what happens if you don’t redirect standard output from CMake maybe it shows in terminal. > >
-- 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