1 758865ee6 update(cmake): Don't add build directories to our pc files
2 diff --git a/userspace/libsinsp/CMakeLists.txt b/userspace/libsinsp/CMakeLists.txt
3 index 6104603e8..1989ea3fb 100644
4 --- a/userspace/libsinsp/CMakeLists.txt
5 +++ b/userspace/libsinsp/CMakeLists.txt
6 @@ -335,6 +335,9 @@ endforeach()
7 # Build our pkg-config "Cflags:" flags.
8 set(SINSP_PKG_CONFIG_INCLUDES "")
9 foreach(sinsp_include_directory ${LIBSINSP_INCLUDE_DIRS})
10 + if (${sinsp_include_directory} MATCHES "^${CMAKE_SOURCE_DIR}" OR ${sinsp_include_directory} MATCHES "^${CMAKE_BINARY_DIR}")
13 list(APPEND SINSP_PKG_CONFIG_INCLUDES -I${sinsp_include_directory})