title: Debug CMake find_library
body: <p>Is it possible to debug <code>find_library</code> from CMake?</p>
  
  <p>What I want is a list of considered paths. My use case is a call like</p>
  
  <pre><code>find_library (FOO_LIBRARY
                NAMES foo foo.so.0)
  </code></pre>
  
  <p>and there is <code>/lib64/libfoo.so.0</code> on my system. However CMake does not find it. I checked that <code>FIND_LIBRARY_USE_LIB64_PATHS</code> is set to <code>TRUE</code>.</p>