Fixes linkage with FFTW + MKL for BLAS/LAPACK
authorRoland Schulz <roland@utk.edu>
Tue, 5 Mar 2013 09:15:01 +0000 (04:15 -0500)
committerChristoph Junghans <junghans@votca.org>
Tue, 5 Mar 2013 17:57:35 +0000 (10:57 -0700)
commit8aba41b6814b61b6bc63ede6f82016b49cbbc860
tree6798c80e4821c93b3575fa3934da160f9f3b2acb
parent44449c1601f6b5d40427da8dfddc2781e2e9ba79
Fixes linkage with FFTW + MKL for BLAS/LAPACK

The order of linking was incorrect, when using both mkl and fftw
causing the mkl fftw wrapper to be used instead of fftw itself.

Removes all unnecessary transitive libraries (cmake adds those
automatically). Simplifies the target_link_libraries lines, and
makes it much easier to change the fft/blas link order.

Only remaining transitive libraries are gmx/md for binaries. This
is required because OpenMP_LINKER_FLAGS needs to be at the end
but transitive libraries are added at the end. Thus without listing
gmx/md manually the order is incorrect.

Also fixes that nbnxn_cuda has cuda_tools listed as library
dependency. Was prior working without it but now is needed and is
also anyhow the more corect way to do it.

Fixes #1067

Change-Id: I639b16f1460d27a15eb72cc00674c041266f6624
src/gmxlib/CMakeLists.txt
src/kernel/CMakeLists.txt
src/mdlib/CMakeLists.txt
src/mdlib/nbnxn_cuda/CMakeLists.txt
src/ngmx/CMakeLists.txt
src/tools/CMakeLists.txt