title: cmake FindLAPACK.cmake and FindBLAS.cmake can not link lapack and blas
body: <p>I have correctly installed lapack and blas on my laptop, and I can link by using</p>
  
  <pre><code>-L/usr/lib64 -lblas -llapack
  </code></pre>
  
  <p>in my Makefile.</p>
  
  <p>I want to use cmake to create a Makefile and link lapack and blas, I am using FindLAPACK.cmake and FindBLAS.cmake provided by cmake in 
  /usr/share/cmake/Modules/</p>
  
  <p>The CMakeLists.txt is use:</p>
  
  <pre><code>find_package(BLAS)
  find_package(LAPACK)
  if(LAPACK_FOUND AND BLAS_FOUND)
     set(lapackblas_libraries "${BLAS_LIBRARIES} ${LAPACK_LIBRARIES}")
  endif()
  
  target_link_libraries(code_exe ${lapackblas_libraries})
  </code></pre>
  
  <p>Here <code>code_exe</code> is my executable to link lapack and blas libraries, I get an error</p>
  
  <pre><code>make[2]: *** No rule to make target `/usr/lib64/libblas.so /usr/lib64/liblapack.so', needed by `test/tensortest'.  Stop.
  make[1]: *** [test/CMakeFiles/tensortest.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>Can anyone help me with that? Thanks a lot.</p>