Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C++] Fixed the setting method of linker option. (apache#8554)
### Motivation I don't think the following `--exclude-libs,ALL` are reflected in linker. [https://github.com/apache/pulsar/blob/f8080f4eb690d751f1b07ca54c23e1cd7774473f/pulsar-client-cpp/CMakeLists.txt#L214](https://github.com/apache/pulsar/blob/f8080f4eb690d751f1b07ca54c23e1cd7774473f/pulsar-client-cpp/CMakeLists.txt#L214) I think `--exclude-libs,ALL` needs to be set in `add_link_options`. [add_link_options](https://cmake.org/cmake/help/latest/command/add_link_options.html) `add_link_options` can be used from v3.13. Therefore, fixed(reverted) `add_compile_options` to `set`.([apache#4071](apache#4071))
- Loading branch information