[CMake] "portable" linux binaries?

j s j.s4403 at gmail.com
Tue Nov 24 00:10:13 EST 2009


The most interesting thing is to be able to set the relative RPATH.

Is there a way to do this for a normal build, and not the install target?  I
never use the install target for my project, but I'd like to be able to set
the relative path to my own copy of libstdc++.  All of the RPATH settings in
the man page for cmake 2.4 seem to be in terms of INSTALL.

Thanks,

Juan

On Mon, Nov 23, 2009 at 3:55 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

> Mark Moll wrote:
>
>> Is there any mechanism in CMake that would make it easier to create
>> Linux binaries that run on more than one version of Linux / glibc? I
>> am thinking of something along the lines of the support for OS X
>> Universal Binaries in CMake or the functionality provided by apgcc in
>> the autopackage tool (http://autopackage.org/apbuild-apgcc.php).
>>
>>
>
> Why reinvent?
>
> This should work just as well with CMake as it does for autotools:
>
> export CC=apgcc
> export CXX=apg++
> cmake ..
>
>
> -Bill
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091123/52f770e8/attachment-0001.htm>


More information about the CMake mailing list