The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=13834 ====================================================================== Reported By: Gert Wollny Assigned To: ====================================================================== Project: CMake Issue ID: 13834 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2013-01-04 07:25 EST Last Modified: 2013-01-04 07:25 EST ====================================================================== Summary: FindBLAS doesn't trust pkg-config and may, therefore, fail Description: FindBLAS first tries to locate the BLAS libraries by using pkg-config. However, instead of trusting the returned information, it then tries to locate all libraries given in the returned string within the returned library directory.
When on Gentoo ACML is selected to provide BLAS, this strategy fails, because apart from the acml libraries, libgfortran and libpthread are reported by phk-config and these libraries are not located within the given library directory, since they are in the default library search path. Steps to Reproduce: on Gentoo: eselect blas set acml-gfortran-openmp Add to CmakeLists.txt: FIND_PACKAGE(BLAS) run cmake Make Error at /usr/share/cmake/Modules/FindBLAS.cmake:58 (message): Something is wrong in your pkg-config file - lib gfortran not found in /opt/acml4.4.0/gfortran64_mp/lib Additional Information: Instead of searching for the libraries, FindBLAS should either just trust pkg-config, or try to link a simple program that requires a BLAS function. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-01-04 07:25 Gert Wollny New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
