From cd286563da32aa4b1123c8ff0c517d0ec07e5006 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 26 Sep 2010 16:48:59 +0000 Subject: -add an include guard at the top, to avoid parsing this file again and again Alex svn path=/trunk/KDE/kdelibs/; revision=1179967 --- modules/FindPackageHandleStandardArgs.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/FindPackageHandleStandardArgs.cmake b/modules/FindPackageHandleStandardArgs.cmake index c698480b..4bede7c8 100644 --- a/modules/FindPackageHandleStandardArgs.cmake +++ b/modules/FindPackageHandleStandardArgs.cmake @@ -67,6 +67,12 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) +# Include guard, it's not necessary to parse this fail again and again: +IF(_FPHSA_ALREADY_INCLUDED) + RETURN() +ENDIF(_FPHSA_ALREADY_INCLUDED) +SET(_FPHSA_ALREADY_INCLUDED TRUE) + INCLUDE(FindPackageMessage) INCLUDE(CMakeParseArguments) @@ -112,7 +118,7 @@ FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG _VAR1) STRING(TOUPPER ${_NAME} _NAME_UPPER) - # collect all variables which were not found, so they can be printed, so the + # collect all variables which were not found, so they can be printed, so the # user knows better what went wrong (#6375) SET(MISSING_VARS "") SET(DETAILS "") -- cgit v1.2.1