summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-01 17:10:14 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-01 17:11:14 (GMT)
commit677992d85ad2560e48282bed8d20ac23e3ee2172 (patch)
tree83733e7e3490a514f1779f12b9ef57ea45a024f9 /Modules
parent40df72a64e5ab62a39600afa8adb9e0317e727fe (diff)
downloadCMake-677992d85ad2560e48282bed8d20ac23e3ee2172.zip
CMake-677992d85ad2560e48282bed8d20ac23e3ee2172.tar.gz
CMake-677992d85ad2560e48282bed8d20ac23e3ee2172.tar.bz2
CMakeParseImplicitLinkInfo: Log exclusion of MSVC link /implib: flag
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeParseImplicitLinkInfo.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CMakeParseImplicitLinkInfo.cmake b/Modules/CMakeParseImplicitLinkInfo.cmake
index a513faf..b48eb43 100644
--- a/Modules/CMakeParseImplicitLinkInfo.cmake
+++ b/Modules/CMakeParseImplicitLinkInfo.cmake
@@ -161,8 +161,9 @@ function(cmake_parse_implicit_link_info2 text log_var obj_regex)
endif()
elseif(is_msvc AND "${arg}" STREQUAL "-link")
string(APPEND log " arg [${arg}] ==> ignore MSVC cl option\n")
- elseif(is_msvc AND NOT "${arg}" MATCHES "^/[Ii][Mm][Pp][Ll][Ii][Bb]:"
- AND "${arg}" MATCHES "^(.*\\.[Ll][Ii][Bb])$")
+ elseif(is_msvc AND "${arg}" MATCHES "^[-/][Ii][Mm][Pp][Ll][Ii][Bb]:")
+ string(APPEND log " arg [${arg}] ==> ignore MSVC link option\n")
+ elseif(is_msvc AND "${arg}" MATCHES "^(.*\\.[Ll][Ii][Bb])$")
if(EXTRA_PARSE_COMPUTE_IMPLICIT_LIBS)
set(lib "${CMAKE_MATCH_1}")
list(APPEND implicit_libs_tmp ${lib})