Re: [cmake-developers] [CMake] FIND_PROGRAM fails to find file without 'r' bit set

2016-01-25 Thread Brad King
On 01/25/2016 08:27 AM, Ben Boeckel wrote: > It's both :) . FileExists is implemented using access() rather than > something like lstat(), so that would indeed be not a "program" since > the file doesn't "exist". > > It was on my list to fix, but the backwards compatibility argument > (IIRC) made

Re: [cmake-developers] [CMake] FIND_PROGRAM fails to find file without 'r' bit set

2016-01-25 Thread Ben Boeckel
On Mon, Jan 25, 2016 at 16:06:47 +0300, Vyacheslav Barinov wrote: > I try to detect paths to some tools using CMake and got the following problem: > if the tool I try to check has 611 (-rw--x--x) rights FIND_PROGRAM reports the > file does not exists. > > For instance my /bin/mount in Gentoo has

[cmake-developers] [CMake] FIND_PROGRAM fails to find file without 'r' bit set

2016-01-25 Thread Vyacheslav Barinov
Hello, I try to detect paths to some tools using CMake and got the following problem: if the tool I try to check has 611 (-rw--x--x) rights FIND_PROGRAM reports the file does not exists. For instance my /bin/mount in Gentoo has such setup and therefore I can use it from shell but can't detect it