summaryrefslogtreecommitdiffstats
path: root/Utilities/cmjsoncpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-31 14:10:40 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-31 14:24:01 (GMT)
commit03454b0d0d5083530f87e3b2f4ed4fe93b182112 (patch)
tree99b7096dee3447d8f35a7f21a0d65b5d73fb2aeb /Utilities/cmjsoncpp
parent44cc305ac12d58fe476f815b89f42288455e44a9 (diff)
downloadCMake-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/cmjsoncpp')
0 files changed, 0 insertions, 0 deletions