Re: [CMake] CMake finds wrong ar/ranlib/nm

2015-07-30 Thread Bill Hoffman
On 7/30/2015 3:17 AM, Auer, Jens wrote: Thanks a lot. Obviously, setting the environment when calling cmake is not enough. The command scl enable devtoolset-3 cmake ../src sets the path etc and runs the cmake command, but it seems that cmake opens a new subshell with default settings. I've added

Re: [CMake] CMake finds wrong ar/ranlib/nm

2015-07-30 Thread Auer, Jens
] On Behalf Of Bill Hoffman Sent: 30 July 2015 15:27 To: cmake@cmake.org Subject: Re: [CMake] CMake finds wrong ar/ranlib/nm On 7/30/2015 3:17 AM, Auer, Jens wrote: Thanks a lot. Obviously, setting the environment when calling cmake is not enough. The command scl enable devtoolset-3 cmake ../src

Re: [CMake] CMake finds wrong ar/ranlib/nm

2015-07-30 Thread Auer, Jens
else. In such case, you should destroy this message and are asked to notify the sender by reply e-mail. -Original Message- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Bill Hoffman Sent: 28 July 2015 17:05 To: cmake@cmake.org Subject: Re: [CMake] CMake finds wrong ar/ranlib

[CMake] CMake finds wrong ar/ranlib/nm

2015-07-28 Thread Auer, Jens
Hi, I am trying to use another compiler than the default one installed on my system. I have to do this because I want to use a newer gcc than the one on centos 7,so I installed RedHat Developer Toolset 3 with gcc 4.9. When I call cmake with scl enable devtoolset-3 cmake ../src in my build

Re: [CMake] CMake finds wrong ar/ranlib/nm

2015-07-28 Thread Bill Hoffman
On 7/28/2015 4:39 AM, Auer, Jens wrote: Hi, I am trying to use another compiler than the default one installed on my system. I have to do this because I want to use a newer gcc than the one on centos 7,so I installed RedHat Developer Toolset 3 with gcc 4.9. When I call cmake with sclenable