File: falco-include-dirs.patch

package info (click to toggle)
wireshark 4.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 331,868 kB
  • sloc: ansic: 2,972,126; cpp: 123,960; xml: 100,952; python: 55,025; perl: 24,371; lex: 7,164; sh: 5,792; pascal: 4,330; makefile: 145; ruby: 114; objc: 70; tcl: 35
file content (15 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
758865ee6 update(cmake): Don't add build directories to our pc files
diff --git a/userspace/libsinsp/CMakeLists.txt b/userspace/libsinsp/CMakeLists.txt
index 6104603e8..1989ea3fb 100644
--- a/userspace/libsinsp/CMakeLists.txt
+++ b/userspace/libsinsp/CMakeLists.txt
@@ -335,6 +335,9 @@ endforeach()
 # Build our pkg-config "Cflags:" flags.
 set(SINSP_PKG_CONFIG_INCLUDES "")
 foreach(sinsp_include_directory ${LIBSINSP_INCLUDE_DIRS})
+	if (${sinsp_include_directory} MATCHES "^${CMAKE_SOURCE_DIR}" OR ${sinsp_include_directory} MATCHES "^${CMAKE_BINARY_DIR}")
+		continue()
+	endif()
 	list(APPEND SINSP_PKG_CONFIG_INCLUDES -I${sinsp_include_directory})
 endforeach()