[CMake] Using an external shared library in a cross-compiled project

Alexander Neundorf a.neundorf-work at gmx.net
Mon Jan 11 15:55:50 EST 2010


On Monday 11 January 2010, Mihai Groza wrote:
> Hi all,
>
> I'm using CMake to port a subproject from autotools. The project is
> cross-compiled. Other parts of the project are still using autotools, this
> is just to see the project can be migrated.
...
> Obviously, this path doesn't exist on the target machine, so the executable
> fails to run. I've tried setting the INSTALL_RPATH to the path where the
> library will be located on the target, yet this doesn't help also.

This should work. What doesn't work, what do you get ?
Using make VERBOSE=1 you can see the full command used for compiling.

Alex


More information about the CMake mailing list