aboutsummaryrefslogtreecommitdiff
path: root/modules/FindHSPELL.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-09-19 20:00:35 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-09-19 20:00:35 +0000
commit1511cad3ffbbb7548a6fa9662aac13620facd5cc (patch)
tree28a6cf6e995967fbfff8e38618a52fa364d2f754 /modules/FindHSPELL.cmake
parenta044c4815efc9c5e069e14a251b9cc8200df8c12 (diff)
downloadextra-cmake-modules-1511cad3ffbbb7548a6fa9662aac13620facd5cc.tar.gz
extra-cmake-modules-1511cad3ffbbb7548a6fa9662aac13620facd5cc.tar.bz2
prepare for merging to cmake
Alex svn path=/trunk/KDE/kdelibs/; revision=586500
Diffstat (limited to 'modules/FindHSPELL.cmake')
-rw-r--r--modules/FindHSPELL.cmake55
1 files changed, 25 insertions, 30 deletions
diff --git a/modules/FindHSPELL.cmake b/modules/FindHSPELL.cmake
index 08a5792c..a2b93a77 100644
--- a/modules/FindHSPELL.cmake
+++ b/modules/FindHSPELL.cmake
@@ -5,43 +5,38 @@
# HSPELL_INCLUDE_DIR - the HSPELL include directory
# HSPELL_LIBRARIES - The libraries needed to use HSPELL
# HSPELL_DEFINITIONS - Compiler switches required for using HSPELL
-#
+
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-if (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
+IF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
# Already in cache, be silent
- set(HSPELL_FIND_QUIETLY TRUE)
-endif (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
-
-
-FIND_PATH(HSPELL_INCLUDE_DIR hspell.h
- /usr/include
- /usr/local/include
-)
-
-FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell
- PATHS
- /usr/lib
- /usr/local/lib
-)
-
-if (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
- set(HSPELL_FOUND TRUE)
-endif (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
-
-if (HSPELL_FOUND)
- if (NOT HSPELL_FIND_QUIETLY)
- message(STATUS "Found HSPELL: ${HSPELL_LIBRARIES}")
- endif (NOT HSPELL_FIND_QUIETLY)
-else (HSPELL_FOUND)
- if (HSPELL_FIND_REQUIRED)
- message(FATAL_ERROR "Could NOT find HSPELL")
- endif (HSPELL_FIND_REQUIRED)
-endif (HSPELL_FOUND)
+ SET(HSPELL_FIND_QUIETLY TRUE)
+ENDIF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
+
+
+FIND_PATH(HSPELL_INCLUDE_DIR hspell.h )
+
+FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell )
+
+IF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
+ SET(HSPELL_FOUND TRUE)
+ELSE (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
+ SET(HSPELL_FOUND FALSE)
+ENDIF (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES)
+
+IF (HSPELL_FOUND)
+ IF (NOT HSPELL_FIND_QUIETLY)
+ MESSAGE(STATUS "Found HSPELL: ${HSPELL_LIBRARIES}")
+ ENDIF (NOT HSPELL_FIND_QUIETLY)
+ELSE (HSPELL_FOUND)
+ IF (HSPELL_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could NOT find HSPELL")
+ ENDIF (HSPELL_FIND_REQUIRED)
+ENDIF (HSPELL_FOUND)
MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)