Re: [CMake] ExternalProject_Add, static library, Ninja generator

2015-04-01 Thread Nils Gladitz
On 04/02/2015 07:15 AM, Charles Nicholson wrote: I'm assuming that I'm not correctly expressing the dependencies. Would anyone mind taking a quick look? I'd really appreciate it! Try adding the following to your ExternalProject_Add call: BUILD_BYPRODUCTS ${HIDAPI_ROOT}/bin/lib/libhidapi.a T

[CMake] ExternalProject_Add, static library, Ninja generator

2015-04-01 Thread Charles Nicholson
Hi all- I'm using ExternalProject_Add to pull down, configure, build, and install the OSS "hidapi" project. The output of the hidapi build is, among other things, a library called libhidapi.a. I'm creating an imported static library using add_library, and then using add_dependency to indicate tha

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-01 Thread Parag Chandra
Hi Jason, You need to cross-compile in order to target iOS, but if I¹m reading your command line correctly, you are merely instructing CMake to generate an Xcode build system for the host OS, which is naturally going to produce a project that targets Mac OSX. The normal way to cross-compile with C

[CMake] iOS multi-arch library target and xcodebuild

2015-04-01 Thread Jason Cooper
All, I'm in a situation I largely dislike. :-) Executing a project with two large unknowns. The unknowns are cmake and xcode. I'm attempting to automate building the dylib's (and .so once I start on Android) for yajl: https://github.com/lloyd/yajl.git My goal is to run a cron job that pull