diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ed1da73fe4671a66ef6a3c6b4261772d218b7f3f..352ec1ec9f7cb1a79d076c13954ca40a443d6261 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -44,5 +44,6 @@ add_fcl_test(test_fcl_bvh_models test_fcl_bvh_models.cpp test_fcl_utility.cpp)
 
 if (FCL_HAVE_OCTOMAP)
   add_fcl_test(test_fcl_octomap test_fcl_octomap.cpp test_fcl_utility.cpp)
+  PKG_CONFIG_USE_DEPENDENCY(test_fcl_octomap octomap)
 endif()