Răsfoiți Sursa

FindOpenSSL: let CMake handle environment variable HINTS

This will automatically make sure the paths will get recoded to proper separators on Windows
Rolf Eike Beer 13 ani în urmă
părinte
comite
c78a7d11dd
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Modules/FindOpenSSL.cmake

+ 1 - 1
Modules/FindOpenSSL.cmake

@@ -31,10 +31,10 @@ endif (UNIX)
 
 # http://www.slproweb.com/products/Win32OpenSSL.html
 SET(_OPENSSL_ROOT_HINTS
-  $ENV{OPENSSL_ROOT_DIR}
   ${OPENSSL_ROOT_DIR}
   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\OpenSSL (32-bit)_is1;Inno Setup: App Path]"
   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\OpenSSL (64-bit)_is1;Inno Setup: App Path]"
+  ENV OPENSSL_ROOT_DIR
   )
 SET(_OPENSSL_ROOT_PATHS
   "$ENV{PROGRAMFILES}/OpenSSL"