Просмотр исходного кода

IRSL: Add Intel oneAPI redist location on Windows

Fixes: #22283
Brad King 4 лет назад
Родитель
Сommit
6d4c51c29e
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      Modules/InstallRequiredSystemLibraries.cmake

+ 3 - 1
Modules/InstallRequiredSystemLibraries.cmake

@@ -80,7 +80,9 @@ foreach(LANG IN ITEMS C CXX Fortran)
         set(_Intel_archdir ia32)
       endif()
       set(_Intel_compiler_ver ${CMAKE_${LANG}_COMPILER_VERSION})
-      if(WIN32)
+      if(WIN32 AND EXISTS "${_Intel_basedir}/../redist/${_Intel_archdir}_win/compiler")
+        get_filename_component(_Intel_redistdir "${_Intel_basedir}/../redist/${_Intel_archdir}_win/compiler" ABSOLUTE)
+      elseif(WIN32)
         get_filename_component(_Intel_redistdir "${_Intel_basedir}/../../redist/${_Intel_archdir}/compiler" ABSOLUTE)
       elseif(APPLE)
         get_filename_component(_Intel_redistdir "${_Intel_basedir}/../../compiler/lib" ABSOLUTE)