I can specify a custom OpenSSL to build neat with like this:
cmake -DOPENSSL_ROOT_DIR=$HOME/build-openssl
... and cmake will correctly identify that version. But it will not setup the correct include path to use the headers as installed in that custom directory, so it'll instead end up building with the system's default openssl headers.
The work-around for this is to manually provide the -I option on the cmake command line:
I can specify a custom OpenSSL to build neat with like this:
cmake -DOPENSSL_ROOT_DIR=$HOME/build-openssl
... and cmake will correctly identify that version. But it will not setup the correct include path to use the headers as installed in that custom directory, so it'll instead end up building with the system's default openssl headers.
The work-around for this is to manually provide the -I option on the cmake command line:
cmake -DOPENSSL_ROOT_DIR=$HOME/build-openssl -DCMAKE_C_FLAGS=-I$HOME/build-openssl/include