No full libs paths on centos 7 mkl 2018
As today, on centos7 and mkl 2018, the cmake script returns such : MKL_LIBRARIES : -Wl,--no-as-needed;mkl_intel_lp64;mkl_sequential;mkl_core;/usr/lib64/libpthread.so;/usr/lib64/libm.so;/usr/lib64/libdl.so and MKL_LIBRARY_DIR : /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64;/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/../compiler/lib/intel64
It does nt succeed to build full libs paths (perhaps because MKL_LIBRARY_DIR contains 2 paths).
This is annoying because cmake prefers libs with full paths when linking. Would there be anyway for the script to return full lib paths in MKL_LIBRARIES ? Kind
we do some black magic for windows along these lines here:
https://github.com/openmeeg/findmkl_cmake/blob/master/cmake/FindMKL.cmake#L222
I fear you'll have to find your own way to consolidate this attempt that so fare works for our own build system.