Dear All
I have found the following code in FindLapack.cmake trying to do installation of new alps:
IF($ENV{MKL} MATCHES "mkl")
MESSAGE(STATUS "Using intel/mkl library: $ENV{MKL}")
#look for the path where the mkl is installed
43: STRING(REGEX MATCHALL "[-][L]([^ ;])+" MKL_PATH_WITH_PREFIX "$ENV{MKL}")
STRING(REGEX REPLACE "[-][L]" "" MKL_PATHS ${MKL_PATH_WITH_PREFIX})
ENDIF($ENV{MKL} MATCHES "mkl")
If I assume correctly this code assumes that there is an environment variable dalled MKL which contains something like
"-L/path/to/mkl"
on my platform it is set by default to
"/path/to/mkl"
If I understand it correctly at the line 43, the $MKL gets stripped of "-L" part and the ${MKL_PATH_WITH_PREFIX} then
will contain just "/path/to/mkl".
I think that perhaps some sort of conditional clause could be added so that
both
$MKL = /path/to/mkl
and
$MKL = -L/path/to/mkl
worked.
Regards,
Mateusz Lacki