diff options
author | Brad King <brad.king@kitware.com> | 2023-12-13 15:36:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-03 22:07:51 (GMT) |
commit | 6e527c2d385156bea79f6fe0647f4b9dba3c5022 (patch) | |
tree | aa0dd2c49eb75e19850741d9e0cbbcdfd19d52b3 /Modules | |
parent | 455aed3061a07f79c8af3c7bd68ebbdcd62e28eb (diff) | |
download | CMake-6e527c2d385156bea79f6fe0647f4b9dba3c5022.zip CMake-6e527c2d385156bea79f6fe0647f4b9dba3c5022.tar.gz CMake-6e527c2d385156bea79f6fe0647f4b9dba3c5022.tar.bz2 |
LinkerId: Fix detection of linker tool for Clang on OpenBSD
Do not match quotes as part of the path.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeParseImplicitLinkInfo.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeParseImplicitLinkInfo.cmake b/Modules/CMakeParseImplicitLinkInfo.cmake index dc7ea17..fcbfc11 100644 --- a/Modules/CMakeParseImplicitLinkInfo.cmake +++ b/Modules/CMakeParseImplicitLinkInfo.cmake @@ -74,7 +74,7 @@ function(cmake_parse_implicit_link_info2 text log_var obj_regex) # whole line and just the command (argv[0]). set(linker_regex "^( *|.*[/\\])(${linker}|${startfile}|([^/\\]+-)?ld|collect2)[^/\\]*( |$)") set(linker_exclude_regex "collect2 version |^[A-Za-z0-9_]+=|/ldfe ") - set(linker_tool_regex "^[ \t]*(->|\")?[ \t]*(.*[/\\](${linker}))(\"|,| |$)") + set(linker_tool_regex "^[ \t]*(->|\")?[ \t]*([^\"]*[/\\](${linker}))(\"|,| |$)") set(linker_tool_exclude_regex "cuda-fake-ld|-fuse-ld=") set(linker_tool "NOTFOUND") set(linker_tool_fallback "") |