From 5ac752262a6cc9fcdbf315553e44c881abd18c8d Mon Sep 17 00:00:00 2001 From: "David J. Sankel" Date: Thu, 26 Feb 2015 11:12:02 -0700 Subject: [PATCH] Don't show status message in 'FindGLM' if 'QUIET' option is set. The 'QUIET' option of 'find_package' sets the 'GLM_FIND_QUIETLY' option. This patch makes FindGLM suppress output when this is the case. --- util/FindGLM.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/FindGLM.cmake b/util/FindGLM.cmake index 2d900929..73fdc0bd 100644 --- a/util/FindGLM.cmake +++ b/util/FindGLM.cmake @@ -59,5 +59,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLM DEFAULT_MSG IF(GLM_FOUND) SET(GLM_INCLUDE_DIRS "${GLM_INCLUDE_DIR}") - MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}") + IF(NOT GLM_FIND_QUIETLY) + MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}") + ENDIF(NOT GLM_FIND_QUIETLY) ENDIF(GLM_FOUND)