[CMake] "portable" linux binaries?

Bill Hoffman bill.hoffman at kitware.com
Mon Nov 23 16:55:52 EST 2009


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


More information about the CMake mailing list