diff options
author | Michael Hirsch <scivision@users.noreply.github.com> | 2020-07-07 03:27:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-07 13:55:29 (GMT) |
commit | 196f042b58afbe00d96372c43d4146153987806f (patch) | |
tree | fc7e70a6a97f1acbd51597a7d4df28c1fd6d08e7 /Modules | |
parent | 96c19ecd55b3989b191696ffb997104dd741980f (diff) | |
download | CMake-196f042b58afbe00d96372c43d4146153987806f.zip CMake-196f042b58afbe00d96372c43d4146153987806f.tar.gz CMake-196f042b58afbe00d96372c43d4146153987806f.tar.bz2 |
FindLAPACK: Handle Windows Intel MKLROOT with backslash
Diffstat (limited to 'Modules')
-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 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) |