<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div><span style="font-size: 12pt;">Hello,</span></div><div><br></div><div>I try to use the find_package function to find BLAS and LAPACK libraries which are required in my code.</div><div><br></div><div>To do that, I do the following:</div><div><br></div><div>======================</div><div>FIND_PACKAGE(BLAS)</div><div>FIND_PACKAGE(LAPACK)</div><div><br></div><div># I should test with BLAS_FOUND and LAPACK_FOUND here but that's not the problem</div><div>LIST(GET BLAS_LIBRARIES 0 BLAS_LIB)</div><div>LIST(GET LAPACK_LIBRARIES 0 LAPACK_LIB)</div><div><br></div><div>TARGET_LINK_LIBRARY(myexe ${LAPACK_LIB}$ ${BLAS_LIB}$)</div><div>=======================</div><div><br></div><div>I have manually checked that BLAS and LAPACK are actually found.</div><div>As explained in FindBLAS.cmake and Find.LAPACK.cmake, BLAS_LIBRARIES and LAPACK_LIBRARIES are lists containing paths to these libraries.</div><div>I get the first entry in each of these lists and try to link with these entries (/usr/lib/libf77blas.so, /usr/lib/liblapack.so).</div><div>But I obtain the following error message:</div><div><br></div><div>==================================================</div><div><p style="margin: 0px;" data-mce-style="margin: 0px;">g++: error: /usr/lib/liblapack.so$: No such file or directory<br>g++: error: /usr/lib/libf77blas.so$: No such file or directory</p><p style="margin: 0px;" data-mce-style="margin: 0px;">==================================================</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">But these files exist in my computer.</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Do you know where the problem come from?</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Cheers,</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Cédric</p></div></div></body></html>