cmake: always link to packaged libbpf if CMAKE_USE_LIBBPF_PACKAGE is set (#3210)
Some of the executables still link to the local static versions even if the user requested CMAKE_USE_LIBBPF_PACKAGE. Fix this by using bcc-shared-no-libbpf more widely if the variable is set. Skip the git submodule and the extraction commands if the user set CMAKE_USE_LIBBPF_PACKAGE
Showing
- CMakeLists.txt 1 addition, 1 deletionCMakeLists.txt
- examples/cpp/CMakeLists.txt 15 additions, 48 deletionsexamples/cpp/CMakeLists.txt
- examples/cpp/pyperf/CMakeLists.txt 5 additions, 0 deletionsexamples/cpp/pyperf/CMakeLists.txt
- introspection/CMakeLists.txt 7 additions, 1 deletionintrospection/CMakeLists.txt
- src/cc/CMakeLists.txt 19 additions, 10 deletionssrc/cc/CMakeLists.txt
- tests/cc/CMakeLists.txt 14 additions, 8 deletionstests/cc/CMakeLists.txt
Loading
Please register or sign in to comment