aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <winter@kde.org>2007-08-13 20:49:20 +0000
committerAllen Winter <winter@kde.org>2007-08-13 20:49:20 +0000
commit27ceca57128f058e899f170716fd70b2b379a303 (patch)
treeb987426ad840c57d441dd8b2560f660125fac502
parent50376939795034a4637367b6d24ff269358790e1 (diff)
downloadextra-cmake-modules-27ceca57128f058e899f170716fd70b2b379a303.tar.gz
extra-cmake-modules-27ceca57128f058e899f170716fd70b2b379a303.tar.bz2
make use of the new FindPackageHandleStandardArgs() macro
CCMAIL: neundorf@kde.org svn path=/trunk/KDE/kdelibs/; revision=699657
-rw-r--r--modules/FindBlitz.cmake16
1 files changed, 3 insertions, 13 deletions
diff --git a/modules/FindBlitz.cmake b/modules/FindBlitz.cmake
index 9acf2471..8551e770 100644
--- a/modules/FindBlitz.cmake
+++ b/modules/FindBlitz.cmake
@@ -30,18 +30,8 @@ FIND_LIBRARY(BLITZ_LIBRARIES
${LIB_INSTALL_DIR}
)
-if(BLITZ_INCLUDES AND BLITZ_LIBRARIES)
- set(BLITZ_FOUND TRUE)
-endif(BLITZ_INCLUDES AND BLITZ_LIBRARIES)
-
-if(BLITZ_FOUND)
- if(NOT Blitz_FIND_QUIETLY)
- message(STATUS "Found Blitz: ${BLITZ_INCLUDES}")
- endif(NOT Blitz_FIND_QUIETLY)
-else(BLITZ_FOUND)
- if(Blitz_FIND_REQUIRED)
- message(FATAL_ERROR "Could NOT find Blitz")
- endif(Blitz_FIND_REQUIRED)
-endif(BLITZ_FOUND)
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Blitz DEFAULT_MSG
+ BLITZ_INCLUDES BLITZ_LIBRARIES)
mark_as_advanced(BLITZ_INCLUDES BLITZ_LIBRARIES)