<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;">&nbsp; Target &quot;cmTryCompileExec&quot; links to item &quot;-Wl,--start-group</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; /opt/acml/3.0/pgi64/lib/libacml.a &quot; which has leading or trailing</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; whitespace.&nbsp; 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&nbsp; CVS Version 1.8 line 96: <br><span style="font-family: courier new,monospace;">-&nbsp;&nbsp;&nbsp; set(CMAKE_REQUIRED_LIBRARIES ${_flags} &quot;-Wl,--start-group ${${LIBRARIES}} ${_blas};-Wl,--end-group&quot; ${_threads})<br>
+&nbsp;&nbsp;&nbsp; set(CMAKE_REQUIRED_LIBRARIES ${_flags} &quot;-Wl,--start-group ${${LIBRARIES}} ${_blas} -Wl,--end-group&quot; ${_threads})<br></span><span style="font-family: courier new,monospace;"></span>(Note the removed semicolon. )<br>
<br>I&nbsp; use Portland Group compilers on&nbsp; 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>