Skip to content

Commit

Permalink
Default to scap as the probe name and the API version as the module v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
gnosek committed Sep 29, 2021
1 parent 3cd1207 commit 458ca19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions userspace/libscap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,21 @@ endif()

add_definitions(-DPLATFORM_NAME="${CMAKE_SYSTEM_NAME}")

file(READ ${PROJECT_SOURCE_DIR}/driver/API_VERSION DRIVER_API_VERSION)
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(KBUILD_FLAGS "${SYSDIG_DEBUG_FLAGS}")
endif()

if(NOT DEFINED PROBE_VERSION)
set(PROBE_VERSION "${SYSDIG_VERSION}")
set(PROBE_VERSION "${DRIVER_API_VERSION}")
endif()
if(NOT DEFINED PROBE_NAME)
set(PROBE_NAME "sysdig-probe")
set(PROBE_NAME "scap")
endif()

if(NOT DEFINED PROBE_DEVICE_NAME)
set(PROBE_DEVICE_NAME "sysdig")
set(PROBE_DEVICE_NAME "scap")
endif()
endif()

Expand Down

0 comments on commit 458ca19

Please sign in to comment.