Re: [CMake] How to set libcurl library path and the library name?

2017-04-27 Thread Rolf Eike Beer
Alex Chen wrote: > There is an error in the FindCURL document of Cmake 3.8 (or prior versions). No. > It says > > CURL_INCLUDE_DIRS - where to find curl/curl.h, etc. Which is what it is _setting_. > But in fact it is looking for CURL_INCLUDE_DIR, not CURL_INCLUDE_DIRS. If I > set –DCURL_INC

Re: [CMake] How to set libcurl library path and the library name?

2017-04-27 Thread Alex Chen
There is an error in the FindCURL document of Cmake 3.8 (or prior versions). It says CURL_INCLUDE_DIRS   - where to find curl/curl.h, etc. CURL_LIBRARIES  - List of libraries when using curl. CURL_FOUND  - True if curl found. CURL_VERSION_STRING - the version of curl found (sinc

[CMake] How to set libcurl library path and the library name?

2017-04-27 Thread Alex Chen
Hi,     I am trying to build AWS CPP SDK for the iOS from downloaded source. The compilation seems to go well but it fails at link time.  My CMake invocation is /Applications/CMake.app/Contents/bin/cmake -Wno-dev -DBUILD_ONLY=s3;s3-encryption -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Cont

[CMake] iOS IPA Creation Xcode 8.3.x

2017-04-27 Thread Wesio
We extensively use CMake in one of our projects and have been successfully using add_executable with MACOSX_BUNDLE to produce iOS .app artefacts and then using a custom target to run (via xcrun) PackageApplication to transform the .app to a .ipa. Unfortunately with Xcode 8.3.x PackageApplication h