Re: [CMake] CMake 3.11: Gives wrong paths to ar/strip/etc. when overridden

2018-06-14 Thread Paul Smith
On Thu, 2018-06-14 at 11:41 +0200, Deniz Bahadir wrote: > > But all the other bintools variable overrides do the wrong thing: > > > >* -DCMAKE_AR=my-ar --> CMAKE_AR=/tmp/obj/my-ar > >* -DCMAKE_LINKER=my-ld --> CMAKE_LINKER=/tmp/obj/my-ld > >* -DCMAKE_RANLIB=my-ranlib

Re: [CMake] CMake 3.11: Gives wrong paths to ar/strip/etc. when overridden

2018-06-14 Thread Deniz Bahadir
Am 14.06.2018 um 07:05 schrieb Paul Smith: I've discovered that CMake is not correctly locating ar/strip/etc. if I override the names of these tools on the command line. I've tried this with 3.5.2 as well and I get the same incorrect behavior. Here's an example (this is on a GNU/Linux system):

[CMake] CMake 3.11: Gives wrong paths to ar/strip/etc. when overridden

2018-06-14 Thread Paul Smith
I've discovered that CMake is not correctly locating ar/strip/etc. if I override the names of these tools on the command line. I've tried this with 3.5.2 as well and I get the same incorrect behavior. Here's an example (this is on a GNU/Linux system): $ type -a my-ar /work/bin/my-ar $ my-ar