Closed acxz closed 3 years ago
your patch may break older mkl installs I think find_program is the way to go, testing both locations, can you try that:
find_program (MKL_LINK_TOOL NAMES mkl_link_tool HINTS ${MKL_ROOT_DIR}/bin ${MKL_ROOT_DIR}/tools)
also, I think it takes care of the .exe extension that is appended manually just after the set line.
Definitely it will break older mkl installs.
Yeah find_program
is a great suggestion.
Edit: It worked for me, here is the PR for it #52
With the newer intel mkl versions the path for
tools
has changed tobin
. I am sure a better solution can be thought of that uses the version information. This is a patch solution for now.