rsocket / rsocket-cpp

C++ implementation of RSocket
http://rsocket.io
Apache License 2.0
253 stars 99 forks source link

Update yarpl/CMakeLists.txt such that Thrift will not depend on building tests #788

Closed phoad closed 7 years ago

phoad commented 7 years ago

Thrift's open source project will be referring directly to Yarpl project. In the yarpl project's parent project (rsocket), we download gmock and then reference that from yarpl. So if we build the Yarpl project alone, it was failing to find gmock.

We don't need to build the unit tests for the fb_thrift project, so I have added a flag to yarpl/CMakeLists.txt that when that flag is set to OFF, it will not build the unit tests.

In the future we might add more if cases, in case gmock is not found.