Re: [CMake] find_library while cross compiling?

2015-05-03 Thread Ben Pope
On Friday, May 01, 2015 04:34 AM, Robert Dailey wrote: I'm on Windows and I am cross compiling for Android NDK. I use find_library() with PATHS to hunt down some libssl.a files, plus a few others. However, find_library() says it can't find them. I'm assuming this is because I'm on Windows and it

Re: [CMake] find_library while cross compiling?

2015-05-01 Thread Parag Chandra
Yes, you need to set them in the toolchain file - at least, that is how I did it for NaCl. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 5/1/15, 10:29 AM, "Rober

Re: [CMake] find_library while cross compiling?

2015-05-01 Thread Robert Dailey
Should I override these variables in the android toolchain file? On Thu, Apr 30, 2015 at 9:43 PM, Parag Chandra wrote: > Hi Robert, > > I encountered a similar problem when I was cross-compiling for NaCl on > Windows. You need to set various CMake variables that explicitly override > things like

Re: [CMake] find_library while cross compiling?

2015-04-30 Thread Parag Chandra
Hi Robert, I encountered a similar problem when I was cross-compiling for NaCl on Windows. You need to set various CMake variables that explicitly override things like the library suffix/prefix. For example, in my case I needed to set the following: set (CMAKE_STATIC_LIBRARY_PREFIX "lib") set (CM

[CMake] find_library while cross compiling?

2015-04-30 Thread Robert Dailey
I'm on Windows and I am cross compiling for Android NDK. I use find_library() with PATHS to hunt down some libssl.a files, plus a few others. However, find_library() says it can't find them. I'm assuming this is because I'm on Windows and it doesn't recognize *.a files as a valid library on that p