From 6ff4114dcbb87f34751064249967aa96c7b8b030 Mon Sep 17 00:00:00 2001
From: Liu Yiding <liuyd.fnst@fujitsu.com>
Date: Wed, 4 Mar 2026 10:02:10 +0000
Subject: [PATCH] cmake: Pass PROBE_NAME via CFLAGS

This helps compliation of driver code where its calling modprobe on the
given kernel module via system() API

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>

Update for 0.39.0
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e8850dbe..c6d725c05 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -174,6 +174,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
 	if(NOT DEFINED DRIVER_NAME)
 		set(DRIVER_NAME "scap")
 	endif()
+       add_definitions(-DPROBE_NAME="${PROBE_NAME}")
 
 	set(DRIVERS_REPO "https://download.sysdig.com/scap-drivers")
 	
-- 
2.43.0

