diff --git a/Modules/ThirdParty/Boost/otb-module-init.cmake b/Modules/ThirdParty/Boost/otb-module-init.cmake
index fb40d6d7f6bf4da5ff4a191bf8ba191988d82ea5..6efec0892440b10cc607d58ca2989cc451f272d1 100644
--- a/Modules/ThirdParty/Boost/otb-module-init.cmake
+++ b/Modules/ThirdParty/Boost/otb-module-init.cmake
@@ -6,6 +6,6 @@ if (BUILD_TESTING)
   if (NOT Boost_UNIT_TEST_FRAMEWORK_FOUND)
     message(STATUS "Boost unit_test_framework not found. Hence otbOGRTests will be skipped")
   else()
-    message(STATUS "Found Boost components: ${OTB_Boost_COMPONENTS}")
+    message(STATUS "Found Boost components: unit_test_framework")
   endif()
 endif() #BUILD_TESTING