summaryrefslogtreecommitdiff
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.github.com>2020-07-06 23:21:58 -0400
committerBrad King <brad.king@kitware.com>2020-07-07 09:55:29 -0400
commit96c19ecd55b3989b191696ffb997104dd741980f (patch)
treec4b164a687fb562931975a3f9ac5fd5d14e9befb /Modules/FindBLAS.cmake
parent1e26c84b96c0ec6887de2cf5e14061ccb83bdbfe (diff)
downloadcmake-96c19ecd55b3989b191696ffb997104dd741980f.tar.gz
FindBLAS: Handle Windows Intel MKLROOT with backslash
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake2
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)