(Windows) exec_program works with windowed executable, execute_process does not
Lets assume we have two cmake scripts both containing only one line:
old.cmake:
exec_program("C:/windows/system32/notepad.exe")
and
new.cmake:
execute_process(COMMAND "C:/windows/system32/notepad.exe")
I'm executing them by calling "cmake -P script.name"
old.cmake runs notepad.exe and i could see it's window. new.cmake launches notepad.exe too but i'm not able to see it's window at all. It's created, i see it in processes, it runs in same session as my user,its parent process is cmake.exe - so everything looks fine, the only one this that notepad's window is invisible or hidden or .. dunno
I'm using this proc in real life calling sign that signs binaries. I cant see any difference in both functions that may lead this behavior, but it's easily reproduced on Windows10, Windows Server 2008, ... i guess on all of them.
I'm not sure whether it's a bug or not but removing this deprecated proc from cmake will be a bit painful so users will be not able to launch windowed executables from script at all