浏览代码

Intel/Classic: deactivate linker dependency file support

The Intel Classic compilers' IPO plugins do not support the
`-Wl,--dependency-file,...` linker flag.

Fixes: #26483
Marc Chevrier 1 年之前
父节点
当前提交
aeaec06267
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Modules/Compiler/Intel.cmake

+ 3 - 0
Modules/Compiler/Intel.cmake

@@ -30,6 +30,9 @@ else()
     string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
     string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
 
+    # Compiler + IPO does not recognize --dependency-file link option
+    set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
+
     if("${lang}" STREQUAL "CXX")
       set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}")
       if(CMAKE_${lang}_COMPILER_ARG1)