[CMake] "portable" linux binaries?

Alexander Neundorf a.neundorf-work at gmx.net
Mon Nov 30 12:50:57 EST 2009


On Sunday 29 November 2009, j s wrote:
> Hello,
>
> I am running:
> cmake version 2.4-patch 7
>
> on Ubuntu 8.04 and I can't get this option to work, whether it is in
> CMakeLists.txt or on the command line.
>
>  rm CMakeCache.txt; cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE
> -DCMAKE_INSTALL_RPATH='$ORIGIN/../lib/shared' ../src/; grep RPATH
> CMakeCache.txt
>
> rm CMakeCache.txt ; cmake -DBUILD_WITH_INSTALL_RPATH=TRUE
> -DINSTALL_RPATH='$ORIGIN/../lib/shared' ../src/ ; grep RPATH CMakeCache.txt
>
> The man page says to use INSTALL_RPATH and BUILD_WITH_INSTALL_RPATH.

Please post a complete small example where the issue can be reproduced (and 
the properties are set via set_target_properties() ).

Thanks
Alex


More information about the CMake mailing list