From a61c8e69e47fff3ec1e9f2137a1277063de3d107 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 9 Nov 2014 21:11:48 +0100 Subject: [PATCH] removing message if not found --- cmake/Modules/FindGLOG.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/FindGLOG.cmake b/cmake/Modules/FindGLOG.cmake index bde4b96d9..d2d4680bd 100644 --- a/cmake/Modules/FindGLOG.cmake +++ b/cmake/Modules/FindGLOG.cmake @@ -67,7 +67,9 @@ else(MSVC) endif(APPLE) endif(MSVC) -message(STATUS "glog library found at ${GLOG_LIBRARIES}") +if(GLOG_FOUND) + message(STATUS "glog library found at ${GLOG_LIBRARIES}") +endif() # handle the QUIETLY and REQUIRED arguments and set GLOG_FOUND to TRUE if # all listed variables are TRUE