title: find_library() only finds the path of the first library name
body: <p>I am referring the official <a href="https://cmake.org/cmake/help/v3.9/command/find_library.html" rel="nofollow noreferrer">doc</a> to use <code>find_library()</code> and my cmake version is 3.9.1.</p>
  
  <p>In short, my <code>find_library()</code> only deals with the first library name and ignore the rest.</p>
  
  <p>For example, when I do something like,</p>
  
  <pre><code>find_library (var NAMES libname1 libname2 PATHS libpath)
  </code></pre>
  
  <p><strong>var</strong> will only get the full path-name of library <strong>libname1</strong> not the counterpart of <strong>libname2</strong>. Both the libraries are placed correctly in <strong>libpath</strong>. In fact, if I reverse the order as <strong>NAMES libname2 libname1</strong>, <strong>var</strong> will only get the full path-name of library <strong>libname2</strong></p>
  
  <p>Any suggestion?</p>