Skip to content

Commit

Permalink
correctly determine INTEL_ROOT_DEFAULT using MKLROOT env variable (#1706
Browse files Browse the repository at this point in the history
)

* correctly determine INTEL_ROOT_DEFAULT using MKLROOT env variable

* handle $ENV{MKLROOT} for any OS
  • Loading branch information
alexlnkp committed May 24, 2024
1 parent 173a0d1 commit 3b248f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ if(DEFINED ENV{INTELROOT})
elseif(DEFINED ENV{ONEAPI_ROOT})
set(INTEL_ROOT_DEFAULT $ENV{ONEAPI_ROOT}/..)
elseif(DEFINED ENV{MKLROOT})
set(INTEL_ROOT_DEFAULT $ENV{MKLROOT}/..)
if(WIN32)
set(INTEL_ROOT_DEFAULT $ENV{MKLROOT}/..)
else()
# Other system like arch set env MKLROOT by default
set(INTEL_ROOT_DEFAULT $ENV{MKLROOT}/../../..)
endif()
elseif(WIN32)
set(ProgramFilesx86 "ProgramFiles(x86)")
set(INTEL_ROOT_DEFAULT PATHS
Expand Down

0 comments on commit 3b248f1

Please sign in to comment.