Ask Your Question

Revision history [back]

I don't know how to pass this via command line.

If you want to adapt the CMakeLists.txt, you should be able to add the respective directories easily:

include_directories(/usr/local/opt/openssl/include)
link_directories(/usr/local/opt/openssl/lib)

make sure to add them before you create the respective targets.

However, imho it would be better to let this be handled by find_package, but I don't know if and how this works in OS X...