title: How to request the greatest version with FIND_PACKAGE in CMAKE
body: <p>I have a folder containing a list of libraries:</p>
  
  <pre><code>libs\libA-1.0
      \libB-1.2
      \libB-1.4
      \libB-1.6 
  </code></pre>
  
  <p>I am loading such libraries in my cmake scripts using for example</p>
  
  <pre><code>FIND_PACKAGE(libB CONFIG)
  </code></pre>
  
  <p>CMAKE in this case simply <strong>loads the first acceptable version</strong> present in the libs folder (in this case libB-1.2 since it is the first found in the folder)</p>
  
  <p>I know that I could request a specific library version using</p>
  
  <pre><code>FIND_PACKAGE(libB 1.6 CONFIG)
  </code></pre>
  
  <p>but I would like to recover the library with the <strong>greatest</strong> version number (or at least the latest in lexicographic order), without specifying it (so that I can update the libraries without modify all my cmake scripts).</p>
  
  <p>Is this possible?</p>