diff --git a/userspace/libsinsp/examples/CMakeLists.txt b/userspace/libsinsp/examples/CMakeLists.txt index d2278326b37..25a671d0ad4 100644 --- a/userspace/libsinsp/examples/CMakeLists.txt +++ b/userspace/libsinsp/examples/CMakeLists.txt @@ -15,6 +15,8 @@ # limitations under the License. # +include(jsoncpp) + add_executable(sinsp-example util.cpp test.cpp @@ -22,6 +24,7 @@ add_executable(sinsp-example target_link_libraries(sinsp-example sinsp + "${JSONCPP_LIB}" ) if (EMSCRIPTEN)