aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2010-09-26 16:48:59 +0000
committerAlexander Neundorf <neundorf@kde.org>2010-09-26 16:48:59 +0000
commitcd286563da32aa4b1123c8ff0c517d0ec07e5006 (patch)
treeb9f8a49441813712a03130cd5ea3a973841ae393 /modules
parent2d268b33b611d8ad73fbc79716a214bf1083f11b (diff)
downloadextra-cmake-modules-cd286563da32aa4b1123c8ff0c517d0ec07e5006.tar.gz
extra-cmake-modules-cd286563da32aa4b1123c8ff0c517d0ec07e5006.tar.bz2
-add an include guard at the top, to avoid parsing this file again and again
Alex svn path=/trunk/KDE/kdelibs/; revision=1179967
Diffstat (limited to 'modules')
-rw-r--r--modules/FindPackageHandleStandardArgs.cmake8
1 files changed, 7 insertions, 1 deletions
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 "")