diff --git a/src/core/examples/CMakeLists.txt b/src/core/examples/CMakeLists.txt
index 0f0d7eeff0..75279466ca 100644
--- a/src/core/examples/CMakeLists.txt
+++ b/src/core/examples/CMakeLists.txt
@@ -53,7 +53,7 @@ build_lib_example(
   NAME empirical-random-variable-example
   SOURCE_FILES empirical-random-variable-example.cc
   LIBRARIES_TO_LINK ${libcore}
-                    ${libflow-monitor}
+                    ${libstats}
 )
 
 build_lib_example(