MantisBT - CMake
View Issue Details
0015137CMakeCMakepublic2014-09-08 10:112015-03-02 08:57
Eugene Shalygin 
 
normalminoralways
closedno change required 
AMD64Linux
CMake 3.0.1 
 
0015137: find_package(LAPACK) reports incorrect syntax in FindLAPACK.cmake
Part of the cmake output log:

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'blas'
-- found blas, version 3.2.1
-- Found BLAS: /usr/lib64/libeigen_blas.so
-- checking for module 'lapack'
-- found lapack, version 3.4.2
CMake Error at /usr/share/cmake/Modules/FindLAPACK.cmake:190 (check_lapack_libraries):
  A logical block opening on the line

    /usr/share/cmake/Modules/FindLAPACK.cmake:84 (if)

  is not closed.
$ cat << EOF > CMakeLists.txt
project(test)
find_package(LAPACK)
EOF

$ mkdir -p build & cd build & cmake ..
No tags attached.
? FindLAPACK.cmake (10,638) 2014-09-08 10:23
https://public.kitware.com/Bug/file/5248/FindLAPACK.cmake
Issue History
2014-09-08 10:11Eugene ShalyginNew Issue
2014-09-08 10:20Brad KingNote Added: 0036742
2014-09-08 10:23Eugene ShalyginNote Added: 0036743
2014-09-08 10:23Eugene ShalyginFile Added: FindLAPACK.cmake
2014-09-08 10:24Eugene ShalyginNote Added: 0036744
2014-09-08 10:26Eugene ShalyginNote Added: 0036745
2014-09-08 10:30Brad KingNote Added: 0036746
2014-09-08 10:30Brad KingStatusnew => resolved
2014-09-08 10:30Brad KingResolutionopen => no change required
2015-03-02 08:57Robert MaynardNote Added: 0038106
2015-03-02 08:57Robert MaynardStatusresolved => closed

Notes
(0036742)
Brad King   
2014-09-08 10:20   
How was this CMake installed? CMake modules are normally installed to "<prefix>/share/cmake-<v>/Modules", where "<v>" is the CMake version number. Also please attach the offending FindLAPACK.cmake file.
(0036743)
Eugene Shalygin   
2014-09-08 10:23   
It was installed via Gentoo package
(0036744)
Eugene Shalygin   
2014-09-08 10:24   
Ups, sorry. This is Gentoo bug
(0036745)
Eugene Shalygin   
2014-09-08 10:26   
Could you close this one, please?
(0036746)
Brad King   
2014-09-08 10:30   
Okay, thanks.
(0038106)
Robert Maynard   
2015-03-02 08:57   
Closing resolved issues that have not been updated in more than 4 months.