From aeaec06267310791b7bbfc74521fd89ed179f02a Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Thu, 28 Nov 2024 15:36:49 +0100 Subject: [PATCH] Intel/Classic: deactivate linker dependency file support The Intel Classic compilers' IPO plugins do not support the `-Wl,--dependency-file,...` linker flag. Fixes: #26483 --- Modules/Compiler/Intel.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/Compiler/Intel.cmake b/Modules/Compiler/Intel.cmake index 317cfc7423..367d26e092 100644 --- a/Modules/Compiler/Intel.cmake +++ b/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)