<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Dear CMake users,<div><br></div><div>I've encountered a strange situation. When I "module load" Intel Fortran compiler ifort and the corresponding OpenMPI installation, CMake will look for libraries&nbsp;dl,&nbsp;nsl, and&nbsp;util in /usr/lib directory, but since the OS, ifort, and mpif90 are all 64 bit, it should have looked in the /usr/lib64 directory. "mpif90 --showme" has "-ldl -lnsl -lutil", and directly using mpif90 will link to the correct versions of the libraries. However, if<span style="line-height: 1.7;">&nbsp;I specify "FC=gfortran" and do cmake then it will be able to find the correct 64 bit libraries. I checked that in both cases "</span>FIND_LIBRARY_USE_LIB64_PATHS" is set to True.</div><div><br></div><div>Have anyone had similar experiences and what should I do to get CMake look in the right places? Any suggestions will be appreciated!</div><div><br></div><div>Thanks,</div><div><br></div><div>Roc</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>