2

I've installed openssl into msys2 using pacman:

pacman -S openssl

However Cmake (within msys2) is still not able to find openssl libraries...

CMake Error at C:/Langs/msys64/mingw64/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY)

What are the proper values for OPENSSL_ROOT_DIR and/or OPENSSL_CRYPTO_LIBRARY? I've tried everything I can find inside msys that contains openssl libraries.

/mingw64/include/openssl/  
/mingw64/bin/  
/mingw64/
Jean-François Fabre
  • 137,073
  • 23
  • 153
  • 219
The Shoe Shiner
  • 697
  • 4
  • 20

1 Answers1

2

Turns out the issue was that the end of the cmake command had:

-D MSYS2_FOLDER=c:/msys64

Which was the default. But the proper value for my system was:

-D MSYS2_FOLDER=c:/langs/msys64

the proper value for OPENSSL_ROOT_DIR was:

c:/langs/msys64/mingw64
The Shoe Shiner
  • 697
  • 4
  • 20