diff options
author | Brad King <brad.king@kitware.com> | 2018-10-31 14:10:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-31 14:24:01 (GMT) |
commit | 03454b0d0d5083530f87e3b2f4ed4fe93b182112 (patch) | |
tree | 99b7096dee3447d8f35a7f21a0d65b5d73fb2aeb /Utilities/Scripts | |
parent | 44cc305ac12d58fe476f815b89f42288455e44a9 (diff) | |
download | CMake-03454b0d0d5083530f87e3b2f4ed4fe93b182112.zip CMake-03454b0d0d5083530f87e3b2f4ed4fe93b182112.tar.gz CMake-03454b0d0d5083530f87e3b2f4ed4fe93b182112.tar.bz2 |
FindProtobuf: Add missing link dependencies on threads
Protobuf headers have dependencies on threads. On UNIX platforms this
requires linking to a threads library. We've long done this in the
`Protobuf_LIBRARIES` result variable. However, the imported targets
added by commit v3.9.0-rc1~81^2~2 (FindProtobuf: add targets,
2017-05-17) and commit v3.9.0-rc1~68^2 (FindProtobuf: Rename imported
targets to match upstream names, 2017-05-22) were missing a dependency
on threads.
Add the dependency to the imported targets, and to the variables
`Protobuf_LITE_LIBRARIES` and `Protobuf_PROTOC_LIBRARIES`. While this
did not seem to matter in practice for a long time, protobuf 3.6 throws
exceptions in some cases when threads are missing.
Fixes: #18533
Diffstat (limited to 'Utilities/Scripts')
0 files changed, 0 insertions, 0 deletions