summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBianca van Schaik <bvschaik@gmail.com>2021-01-14 13:28:48 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-20 15:26:54 (GMT)
commitf2d92b983b8d46f54f4de050d5a10d59ba3ebec0 (patch)
tree93d56996019c9e1180010f8e8c80d38b421fbe10
parent2c0e4c37624e673a6d513cffc8edb1d595d175a9 (diff)
downloadCMake-f2d92b983b8d46f54f4de050d5a10d59ba3ebec0.zip
CMake-f2d92b983b8d46f54f4de050d5a10d59ba3ebec0.tar.gz
CMake-f2d92b983b8d46f54f4de050d5a10d59ba3ebec0.tar.bz2
GetPrerequisites: Include weak macOS dependencies
Starting with Clang 12, `otool -L` adds `, weak` to weakly linked libraries. Update GetPrerequisites to recognize these. Issue: #21684
-rw-r--r--Modules/GetPrerequisites.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index c99c772..2d4765a 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -735,7 +735,7 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
set(gp_regex_cmp_count 1)
elseif(gp_tool MATCHES "otool$")
set(gp_cmd_args "-L")
- set(gp_regex "^\t([^\t]+) \\(compatibility version ([0-9]+.[0-9]+.[0-9]+), current version ([0-9]+.[0-9]+.[0-9]+)\\)${eol_char}$")
+ set(gp_regex "^\t([^\t]+) \\(compatibility version ([0-9]+.[0-9]+.[0-9]+), current version ([0-9]+.[0-9]+.[0-9]+)(, weak)?\\)${eol_char}$")
set(gp_regex_error "")
set(gp_regex_fallback "")
set(gp_regex_cmp_count 3)