I use BLA_STATIC before find(LAPACK) and get the following:

-- Looking for Fortran cheev
CMake Error at CMakeLists.txt:8 (ADD_EXECUTABLE):
  Target "cmTryCompileExec" links to item "-Wl,--start-group
  /opt/acml/3.0/pgi64/lib/libacml.a " which has leading or trailing
  whitespace.  This is now an error according to policy CMP0004.

CMake Error: Internal CMake error, TryCompile generation of cmake failed
-- Looking for Fortran cheev - not found
-- A library with LAPACK API not found. Please specify library location.


The issue is resolved with the following change to Modules/FindLAPACK.cmake
CVS Version 1.8 line 96:
-    set(CMAKE_REQUIRED_LIBRARIES ${_flags} "-Wl,--start-group
${${LIBRARIES}} ${_blas};-Wl,--end-group" ${_threads})
+    set(CMAKE_REQUIRED_LIBRARIES ${_flags} "-Wl,--start-group
${${LIBRARIES}} ${_blas} -Wl,--end-group" ${_threads})
(Note the removed semicolon. )

I  use Portland Group compilers on  Cray XT3/Catamount (no shared libs) and
ACML.

- Levent

-- 
Server Levent Yilmaz
Mechanical Engineering
University of Pittsburgh
http://www.engr.pitt.edu/cfd/levent/
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to