<div dir="ltr">Dear all,<div><br></div><div>I'm having some troubles using the 'PATHS' argument to find_library. More specifically, I'm trying to find the gfortran libraries (<b>/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.so</b> on my system).</div><div><br></div><div>If I call </div><div><br></div>find_library(FORTRAN_LIBRARY<br>    NAMES gfortran<br>    PATHS "/usr/lib/gcc/x86_64-linux-gnu/*")<div><br></div><div>CMake finds the gfortran libs. However, if I change the last argument to "usr/lib/gcc/*", CMake does not find the specified library and throws an error (if REQUIRED is set).</div><div><br></div><div><b>Why is the extra directory necessary? Does the `*' symbol only look one directory deeper?  How can I traverse folders recursively?</b></div><div><br></div><div>I tried to look for documentation on this, but searches in both Google and the CMake docs did not return anything useful. (looked for find_library, file, glob, etc.)</div><div><br></div><div>Best regards,</div><div>Robin</div><div><br></div><div>PS if someone knows a better way of finding Fortran libraries, please feel free to enlighten me.</div><div><br></div><div><br></div></div>