<div dir="ltr"><br>I use BLA_STATIC before find(LAPACK) and get the following: <br><br><span style="font-family: courier new,monospace;">-- Looking for Fortran cheev</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CMake Error at CMakeLists.txt:8 (ADD_EXECUTABLE):</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Target "cmTryCompileExec" links to item "-Wl,--start-group</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /opt/acml/3.0/pgi64/lib/libacml.a " which has leading or trailing</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> whitespace. This is now an error according to policy CMP0004.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CMake Error: Internal CMake error, TryCompile generation of cmake failed</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">-- Looking for Fortran cheev - not found</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-- A library with LAPACK API not found. Please specify library location.</span><br style="font-family: courier new,monospace;">
<br><br>The issue is resolved with the following change to Modules/FindLAPACK.cmake CVS Version 1.8 line 96: <br><span style="font-family: courier new,monospace;">- set(CMAKE_REQUIRED_LIBRARIES ${_flags} "-Wl,--start-group ${${LIBRARIES}} ${_blas};-Wl,--end-group" ${_threads})<br>
+ set(CMAKE_REQUIRED_LIBRARIES ${_flags} "-Wl,--start-group ${${LIBRARIES}} ${_blas} -Wl,--end-group" ${_threads})<br></span><span style="font-family: courier new,monospace;"></span>(Note the removed semicolon. )<br>
<br>I use Portland Group compilers on Cray XT3/Catamount (no shared libs) and ACML. <br><br>- Levent<br><br>-- <br>Server Levent Yilmaz<br>Mechanical Engineering<br>University of Pittsburgh<br><a href="http://www.engr.pitt.edu/cfd/levent/">http://www.engr.pitt.edu/cfd/levent/</a><br>
</div>