Skip to content

Commit

Permalink
Fix compile errors with ENABLE_USDT=Off
Browse files Browse the repository at this point in the history
Signed-off-by: Brenden Blanco <bblanco@gmail.com>
  • Loading branch information
drzaeus77 committed Aug 25, 2017
1 parent d2e5dd5 commit 86bcc27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/CMakeLists.txt
Expand Up @@ -2,7 +2,9 @@ set(EXAMPLE_PROGRAMS hello_world.py)
install(PROGRAMS ${EXAMPLE_PROGRAMS} DESTINATION share/bcc/examples)

if(ENABLE_CLANG_JIT)
if(ENABLE_USDT)
add_subdirectory(cpp)
endif(ENABLE_USDT)
add_subdirectory(lua)
add_subdirectory(networking)
add_subdirectory(tracing)
Expand Down
2 changes: 2 additions & 0 deletions tests/cc/CMakeLists.txt
Expand Up @@ -9,6 +9,7 @@ target_link_libraries(test_static bcc-static)

add_test(NAME c_test_static COMMAND ${TEST_WRAPPER} c_test_static sudo ${CMAKE_CURRENT_BINARY_DIR}/test_static)

if(ENABLE_USDT)
add_executable(test_libbcc
test_libbcc.cc
test_c_api.cc
Expand All @@ -25,3 +26,4 @@ find_path(SDT_HEADER NAMES "sys/sdt.h")
if (SDT_HEADER)
target_compile_definitions(test_libbcc PRIVATE HAVE_SDT_HEADER=1)
endif()
endif(ENABLE_USDT)

0 comments on commit 86bcc27

Please sign in to comment.