I am trying to build libwebsockets on Windows 10 using CMake and MinGW. The library requires OpenSSL.
Environment Variables: OPENSSL_CONF=C:\Program Files (x86)\OpenSSL-Win32\bin\openssl.cfg OPENSSL_ROOT_DIR=C:\Program Files (x86)\OpenSSL-Win32
I'm using this to build:
cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:/MinGW -DOPENSSL_LIBRARIES="C:\Program Files (x86)\OpenSSL-Win32\lib" -DOPENSSL_CONF="C:\Program Files (x86)\OpenSSL-Win32\openssl.cfg" -DOPENSSL_INCLUDE_DIR="C:\Program Files (x86)\OpenSSL-Win32\include" ..\
The error I get is:
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found version "1.1.0")
I downloaded the OpenSSL binaries from a community build and have used both 64 and 32 versions.
I've even modified the CMake file to confirm the variables were being passed in.