summaryrefslogtreecommitdiffstats
path: root/Modules/FindLAPACK.cmake
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.github.com>2020-07-07 03:27:03 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-07 13:55:29 (GMT)
commit196f042b58afbe00d96372c43d4146153987806f (patch)
treefc7e70a6a97f1acbd51597a7d4df28c1fd6d08e7 /Modules/FindLAPACK.cmake
parent96c19ecd55b3989b191696ffb997104dd741980f (diff)
downloadCMake-196f042b58afbe00d96372c43d4146153987806f.zip
CMake-196f042b58afbe00d96372c43d4146153987806f.tar.gz
CMake-196f042b58afbe00d96372c43d4146153987806f.tar.bz2
FindLAPACK: Handle Windows Intel MKLROOT with backslash
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r--Modules/FindLAPACK.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake
index e275946..31e7de6 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)