> Shepherd, Jason F wrote: > > Hi all, > > > > I'm currently using Cmake 2.8b. I'm trying to add a requirement > > (based on another conditional statement) to find the LAPACK > and BLAS > > packages to VTK's Infovis capabilities. I've added the following > > lines to my CMakeLists.txt > > > > FIND_PACKAGE(BLAS REQUIRED) > > FIND_PACKAGE(LAPACK REQUIRED) > > > > But, this results in the following error: > > > > CMake Error at C:/Program Files/CMake > > 2.8/share/cmake-2.8/Modules/FindBLAS.cmake:31 (message): > > FindBLAS is Fortran-only so Fortran must be enabled. > > Call Stack (most recent call first): > > VTK/Infovis/CMakeLists.txt:227 (FIND_PACKAGE) > > > > However, I'm trying to do this with the new cmake-enabled > > clapack-3.2.1 which doesn't require any fortran. Is there a better > > way to find the correct blas and lapack packages that > bypasses the fortran-only requirement? > > > Yes you can do this: > > find_package(clapack) > > The new clpack uses the new package stuff from CMake complete > with imported targets. > > Even has a dashboard: > > http://my.cdash.org/index.php?project=CLAPACK
Hi Bill, Thanks, this is helpful... A follow on question: What if I don't want to require clapack, but want to allow it if available. What is the correct way to check for clapack or lapack? Would it be possible to make the find_package(clapack) a part of the normal cmake routines for find_package(lapack)? Jason > > > -Bill > > _______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake