From 11adb3b7aedc60254dc459f4aa61391c8fb75c95 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 19 May 2026 14:06:19 -0400 Subject: [PATCH] Linker/Windows-MSVC: check for a non-empty linker version --- Modules/Platform/Linker/Windows-MSVC.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Platform/Linker/Windows-MSVC.cmake b/Modules/Platform/Linker/Windows-MSVC.cmake index d4e819c5cb..1facec57cf 100644 --- a/Modules/Platform/Linker/Windows-MSVC.cmake +++ b/Modules/Platform/Linker/Windows-MSVC.cmake @@ -18,7 +18,7 @@ macro(__windows_linker_msvc lang) set(CMAKE_${lang}_LINK_LIBRARIES_PROCESSING ORDER=FORWARD DEDUPLICATION=ALL) # Features for LINK_LIBRARY generator expression - if(DEFINED CMAKE_${lang}_COMPILER_LINKER_VERSION) + if(NOT CMAKE_${lang}_COMPILER_LINKER_VERSION STREQUAL "") if (CMAKE_${lang}_COMPILER_LINKER_VERSION GREATER_EQUAL "14.10") ## WHOLE_ARCHIVE: Force loading all members of an archive set(CMAKE_${lang}_LINK_LIBRARY_USING_WHOLE_ARCHIVE "LINKER:/WHOLEARCHIVE:")