diff options
author | Michael Hirsch <scivision@users.noreply.github.com> | 2020-07-06 23:21:58 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-07 09:55:29 -0400 |
commit | 96c19ecd55b3989b191696ffb997104dd741980f (patch) | |
tree | c4b164a687fb562931975a3f9ac5fd5d14e9befb /Modules/FindBLAS.cmake | |
parent | 1e26c84b96c0ec6887de2cf5e14061ccb83bdbfe (diff) | |
download | cmake-96c19ecd55b3989b191696ffb997104dd741980f.tar.gz |
FindBLAS: Handle Windows Intel MKLROOT with backslash
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r-- | Modules/FindBLAS.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake index 4c569b39de..60f178be74 100644 --- a/Modules/FindBLAS.cmake +++ b/Modules/FindBLAS.cmake @@ -473,7 +473,7 @@ if(BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All") set(BLAS_mkl_OS_NAME "lin") endif() if(DEFINED ENV{MKLROOT}) - set(BLAS_mkl_MKLROOT "$ENV{MKLROOT}") + file(TO_CMAKE_PATH "$ENV{MKLROOT}" BLAS_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(BLAS_mkl_MKLROOT_LAST_DIR "${BLAS_mkl_MKLROOT}" NAME) |