title: Cmake Openssl not found
body: <p>Want to cross-compile a C application that uses Azure IoT SDK, which unfortunately requires Cmake. Cmake refuses to build my toolchain because it claims that it cannot find Openssl that I've compiled for my target architecture. </p>
  
  <p>I've tried adding <code>OPENSSL_ROOT_DIR</code> to the folder it's in.</p>
  
  <pre><code>SET(OPENSSL_ROOT_DIR /path/to/openssl)
  </code></pre>
  
  <p>I continually get the error: </p>
  
  <pre><code>  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.0.2g")
  </code></pre>
  
  <p>I also tried setting system variables to these folder as the error suggests, but it seemingly ignores them and prompts the same error. I've tried adding it to the same folder as my C compiler also to no avail.</p>
  
  <p>I've run out of things to try and this point and I do not understand why it doesn't work. Any suggestions? </p>