diff options
author | Michael Hirsch <scivision@users.noreply.github.com> | 2020-07-06 23:27:03 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-07 09:55:29 -0400 |
commit | 196f042b58afbe00d96372c43d4146153987806f (patch) | |
tree | fc7e70a6a97f1acbd51597a7d4df28c1fd6d08e7 | |
parent | 96c19ecd55b3989b191696ffb997104dd741980f (diff) | |
download | cmake-196f042b58afbe00d96372c43d4146153987806f.tar.gz |
FindLAPACK: Handle Windows Intel MKLROOT with backslash
-rw-r--r-- | Modules/FindLAPACK.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake index e275946849..31e7de68c0 100644 --- a/Modules/FindLAPACK.cmake +++ b/Modules/FindLAPACK.cmake @@ -279,7 +279,7 @@ if(BLAS_FOUND) set(LAPACK_mkl_OS_NAME "lin") endif() if(DEFINED ENV{MKLROOT}) - set(LAPACK_mkl_MKLROOT "$ENV{MKLROOT}") + file(TO_CMAKE_PATH "$ENV{MKLROOT}" LAPACK_mkl_MKLROOT) # If MKLROOT points to the subdirectory 'mkl', use the parent directory instead # so we can better detect other relevant libraries in 'compiler' or 'tbb': get_filename_component(LAPACK_mkl_MKLROOT_LAST_DIR "${LAPACK_mkl_MKLROOT}" NAME) |