Re: [CMake] cross-compile and find_library

2012-09-26 Thread Davis Ford
Let me take another shot at this -- I created a gist that highlights the problem: https://gist.github.com/3789287 I am supporting cross-compile for the Raspberry Pi Arm target in my project, but I also build regularly on plain 'ol x86 linux so I can test w/o having to go to the target. The Pi is

Re: [CMake] cross-compile and find_library

2012-09-26 Thread Davis Ford
Problem resolved. The confusion seemed to stem from how I was using ${PROJECT_SRC_DIRECTORY}, which does not give the same path when used in the Toolchain file as it does in a src/ dir - so it ended up being a simple path issue. On Wed, Sep 26, 2012 at 1:22 PM, Davis Ford davisf...@gmail.com

[CMake] cross-compile and find_library

2012-09-24 Thread Davis Ford
I have a build that needs to cross-compile. The directory structure looks something like this: /src /lib | -- linux | -- libFoo.so | -- embedded | -- libFoo.so libFoo.so under embedded was cross-compiled, and I have a Toolchain file to cross-compile my project's source and I