Explorar o código

FindHSPELL: no need to set QUIETLY explicitly

Kovarththanan Rajaratnam %!s(int64=15) %!d(string=hai) anos
pai
achega
99313f4fe9
Modificáronse 1 ficheiros con 2 adicións e 9 borrados
  1. 2 9
      Modules/FindHSPELL.cmake

+ 2 - 9
Modules/FindHSPELL.cmake

@@ -20,21 +20,14 @@
 # (To distributed this file outside of CMake, substitute the full
 #  License text for the above reference.)
 
-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)
 
-
-FIND_PATH(HSPELL_INCLUDE_DIR hspell.h )
-
-FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell )
+FIND_LIBRARY(HSPELL_LIBRARIES NAMES hspell)
 
 # handle the QUIETLY and REQUIRED arguments and set HSPELL_FOUND to TRUE if 
 # all listed variables are TRUE
 INCLUDE(FindPackageHandleStandardArgs)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(HSPELL DEFAULT_MSG HSPELL_LIBRARIES HSPELL_INCLUDE_DIR)
 
-
 MARK_AS_ADVANCED(HSPELL_INCLUDE_DIR HSPELL_LIBRARIES)