Created by: luotao1
If we use cmake .. -DWITH_DISTRIBUTE=ON -DWITH_GRPC=OFF
, there is error
CMake Error at cmake/generic.cmake:377 (add_dependencies):
The dependency target "snappy" of target "rpc_server_test" does not exist.
Call Stack (most recent call first):
cmake/generic.cmake:404 (cc_test_build)
paddle/fluid/operators/distributed/CMakeLists.txt:57 (cc_test)
CMake Error at cmake/generic.cmake:377 (add_dependencies):
The dependency target "snappystream" of target "rpc_server_test" does not
exist.
Call Stack (most recent call first):
cmake/generic.cmake:404 (cc_test_build)
paddle/fluid/operators/distributed/CMakeLists.txt:57 (cc_test)
CMake Error at cmake/generic.cmake:377 (add_dependencies):
The dependency target "snappy" of target "brpc_serde_test" does not exist.
Call Stack (most recent call first):
cmake/generic.cmake:404 (cc_test_build)
paddle/fluid/operators/distributed/CMakeLists.txt:52 (cc_test)
CMake Error at cmake/generic.cmake:377 (add_dependencies):
The dependency target "snappystream" of target "brpc_serde_test" does not
exist.
Call Stack (most recent call first):
cmake/generic.cmake:404 (cc_test_build)
paddle/fluid/operators/distributed/CMakeLists.txt:52 (cc_test)
CMake Error at cmake/generic.cmake:377 (add_dependencies):
The dependency target "snappy" of target "op_tester" does not exist.
Call Stack (most recent call first):
cmake/generic.cmake:404 (cc_test_build)
paddle/fluid/operators/benchmark/CMakeLists.txt:1 (cc_test)
CMake Error at cmake/generic.cmake:377 (add_dependencies):
The dependency target "snappystream" of target "op_tester" does not exist.
Call Stack (most recent call first):
cmake/generic.cmake:404 (cc_test_build)
paddle/fluid/operators/benchmark/CMakeLists.txt:1 (cc_test)
-- Generating done
This PR remove the unused snappy/snappystream depends to fix above cmake error.