From 047585edc62fc4223a77a2c587a2ac795c91718f Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 27 May 2021 10:37:17 -0400 Subject: BinUtils: Find linker and librarian for Intel compilers on Windows Update our Intel linker and archiver rules to use the `` and `` placeholders instead of hard-coding the tool names. --- Modules/CMakeFindBinUtils.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Modules/CMakeFindBinUtils.cmake') diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index de516fce14..9dac4a9b4e 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -82,6 +82,9 @@ if(("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_SIMULATE_ID}" STREQUAL "xMSVC" AND list(PREPEND _CMAKE_MT_NAMES "llvm-mt") list(PREPEND _CMAKE_LINKER_NAMES "lld-link") list(APPEND _CMAKE_TOOL_VARS NM) + elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^xIntel") + list(PREPEND _CMAKE_AR_NAMES "xilib") + list(PREPEND _CMAKE_LINKER_NAMES "xilink") endif() list(APPEND _CMAKE_TOOL_VARS LINKER MT AR) -- cgit v1.2.1