Search code examples
xcodecmakestatic-linkingfirebreath

How link OpenSSL's libcrypto.a to Firebreath plugin in XCode


I am newbie. I have compiled OpenSSL's libcrypto.a in shell, but could not link it to my Firebreath plugin. I have added in CMakeLists.txt:

target_link_libraries(${CURPROJECT} /path/to/libcrypto.a)

But CMake gives error:

Cannot specify link libraries for target "/path/to/libcrypto.a" which is not build by this project

I am using MacOSX 10.9, XCode 5.1.1, FireBreath 1.7, OpenSSL 1.0.1i.

Please explain to me, how could I link libcrypto.a to my plugin?


Solution

  • Have you already tested the "experimental" built-in openssl support described here:

    Firebreath libraries