[CMake] CMake finds wrong ar/ranlib/nm
Auer, Jens
jens.auer at cgi.com
Thu Jul 30 10:03:53 EDT 2015
I did some more investigation and found out that this only happens when I use CMAKE_BUILD_TYPE=RELEASE. Could this be related to the bug in centos? When I set the build type to release, ar crashes when using lto. Could this make cmake discard the ar in the custom directory and fall-back to the system one?
Best wishes,
Jens
--
Dr. Jens Auer | CGI | Software Engineer
CGI Deutschland Ltd. & Co. KG
Rheinstraße 95 | 64295 Darmstadt | Germany
T: +49 6151 36860 154
jens.auer at cgi.com
Unsere Pflichtangaben gemäß § 35a GmbHG / §§ 161, 125a HGB finden Sie unter de.cgi.com/pflichtangaben.
CONFIDENTIALITY NOTICE: Proprietary/Confidential information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone 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-bounces at cmake.org] On Behalf Of Bill Hoffman
> Sent: 30 July 2015 15:27
> To: cmake at 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"
> > sets the path etc and runs the cmake command, but it seems that cmake
> > opens a new subshell with default settings. I've added the settings to
> > .bashrc and it now finds the correct ar/ranlib etc.
> I don't believe it. CMake does not open a new shell, something else is going on.
> Sounds like you have other system problems to deal with.
>
> -Bill
>
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list