diff options
author | Brenden Blanco <bblanco@gmail.com> | 2017-06-28 17:37:06 -0700 |
---|---|---|
committer | Brenden Blanco <bblanco@gmail.com> | 2017-08-25 16:41:36 -0700 |
commit | 71fc3d5c890f57fb7f979c6176d97da0f04d0801 (patch) | |
tree | cd24d732b38451f5e2d54ace5ab3f5ae12eeadd3 /examples | |
parent | 1614ce77b505eca0440ead0b80558c86a36d17ba (diff) | |
download | bcc-71fc3d5c890f57fb7f979c6176d97da0f04d0801.tar.gz |
move api and create dependent option
Move the C++ api files under a new subdirectory.
Use CMAKE_DEPENDENT_OPTION to enforce sdt->cpp_api relationship.
Since linking .a into a .so can cause global symbols to be dropped, add
a helper file to force exported symbols to be retained (link_all.cc).
This problem doesn't exist for building the static cpp examples.
Signed-off-by: Brenden Blanco <bblanco@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cpp/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index 49da8296..7d6ccee2 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -2,6 +2,7 @@ # Licensed under the Apache License, Version 2.0 (the "License") include_directories(${CMAKE_SOURCE_DIR}/src/cc) +include_directories(${CMAKE_SOURCE_DIR}/src/cc/api) option(INSTALL_CPP_EXAMPLES "Install C++ examples. Those binaries are statically linked and can take plenty of disk space" OFF) |