summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.github.com>2020-07-07 03:21:58 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-07 13:55:29 (GMT)
commit96c19ecd55b3989b191696ffb997104dd741980f (patch)
treec4b164a687fb562931975a3f9ac5fd5d14e9befb
parent1e26c84b96c0ec6887de2cf5e14061ccb83bdbfe (diff)
downloadCMake-96c19ecd55b3989b191696ffb997104dd741980f.zip
CMake-96c19ecd55b3989b191696ffb997104dd741980f.tar.gz
CMake-96c19ecd55b3989b191696ffb997104dd741980f.tar.bz2
FindBLAS: Handle Windows Intel MKLROOT with backslash
-rw-r--r--Modules/FindBLAS.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 4c569b3..60f178b 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)