diff options
author | David Cole <david.cole@kitware.com> | 2012-03-02 16:45:39 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-03-02 16:45:39 (GMT) |
commit | 4a97a2b913c38b54394cce30b8771520c5d60a81 (patch) | |
tree | 725e42eb81e44ff4a0349e68628fdeeec97d795a /Modules | |
parent | e7b91c12265b5649b90fb4c07d7c69f93df41ad9 (diff) | |
parent | 213eb6e6a6517775a3b538681e6c334abcdf5d5f (diff) | |
download | CMake-4a97a2b913c38b54394cce30b8771520c5d60a81.zip CMake-4a97a2b913c38b54394cce30b8771520c5d60a81.tar.gz CMake-4a97a2b913c38b54394cce30b8771520c5d60a81.tar.bz2 |
Merge topic 'fix-findhspell-version'
213eb6e FindHSPELL: set HSPELL_VERSION_STRING
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindHSPELL.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindHSPELL.cmake b/Modules/FindHSPELL.cmake index 054f565..ca5709b 100644 --- a/Modules/FindHSPELL.cmake +++ b/Modules/FindHSPELL.cmake @@ -32,12 +32,15 @@ IF (HSPELL_INCLUDE_DIR) FILE(READ "${HSPELL_INCLUDE_DIR}/hspell.h" HSPELL_H) STRING(REGEX REPLACE ".*#define HSPELL_VERSION_MAJOR ([0-9]+).*" "\\1" HSPELL_VERSION_MAJOR "${HSPELL_H}") STRING(REGEX REPLACE ".*#define HSPELL_VERSION_MINOR ([0-9]+).*" "\\1" HSPELL_VERSION_MINOR "${HSPELL_H}") + SET(HSPELL_VERSION_STRING "${HSPELL_VERSION_MAJOR}.${HSPELL_VERSION_MINOR}") ENDIF() # handle the QUIETLY and REQUIRED arguments and set HSPELL_FOUND to TRUE if # all listed variables are TRUE INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL DEFAULT_MSG HSPELL_LIBRARIES HSPELL_INCLUDE_DIR) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL + REQUIRED_VARS HSPELL_LIBRARIES HSPELL_INCLUDE_DIR + VERSION_VAR HSPELL_VERSION_STRING) MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES) |