[CMake] EXECUTE_PROCESS too good at running programs
William A. Hoffman
billlist at nycap.rr.com
Fri Jul 21 16:38:11 EDT 2006
At 04:21 PM 7/21/2006, Brandon J. Van Every wrote:
>My test is plenty reliable. I have ***makeinfo***, not makeinfo.exe. Please read *ALL* the details of my post. There are ~30 tools in E:\msys\1.0\bin that do not have .exe suffixes, run fine under a MSYS shell, and are not intended to be run under anything but a MSYS shell. EXECUTE_PROCESS is finding a way to run them. My wild-assed-guess as to explanation, is that it execs arbitrarily named files, and does not check whether the filename is valid for a Windows command prompt. These MSYS tools are probably valid apps in some Windows-native sense, but not to a Windows command prompt.
My msys has a makeinfo.exe and not a makeinfo.
Cygwin:
$ ls /cygdrive/c/msys/1.0/bin/makeinfo.exe
/cygdrive/c/msys/1.0/bin/makeinfo.exe
msys:
Hoffman at VOGON /bin
$ ls -l makeinfo.exe makeinfo
-rwxr-xr-x 1 Hoffman Administ 180224 Mar 16 2004 makeinfo
-rwxr-xr-x 1 Hoffman Administ 180224 Mar 16 2004 makeinfo.exe
But from dos there is no makeinfo:
C:\msys\1.0\bin>dir makeinfo.exe
Volume in drive C has no label.
Volume Serial Number is 78BB-7820
Directory of C:\msys\1.0\bin
03/16/2004 01:32 PM 180,224 makeinfo.exe
1 File(s) 180,224 bytes
-Bill
More information about the CMake
mailing list