summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-04-11 20:31:17 +0200
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2010-04-11 20:40:02 +0200
commit4d6e0f39c2cd40c2dfba94ac1e5b39e543cf946a (patch)
tree2d5d7860e40cbe6e8cdf2e25e26a589fe35b7cdf /Modules
parent44f631e6df2286ac7a0d1a90543eb57e20caa5c4 (diff)
downloadcmake-4d6e0f39c2cd40c2dfba94ac1e5b39e543cf946a.tar.gz
FindSubversion: simplify using FindPackageHandleStandardArgs()
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindSubversion.cmake13
1 files changed, 2 insertions, 11 deletions
diff --git a/Modules/FindSubversion.cmake b/Modules/FindSubversion.cmake
index c33df1d424..58a179d049 100644
--- a/Modules/FindSubversion.cmake
+++ b/Modules/FindSubversion.cmake
@@ -109,14 +109,5 @@ IF(Subversion_SVN_EXECUTABLE)
ENDIF(Subversion_SVN_EXECUTABLE)
-IF(NOT Subversion_FOUND)
- IF(NOT Subversion_FIND_QUIETLY)
- MESSAGE(STATUS "Subversion was not found.")
- ELSE(NOT Subversion_FIND_QUIETLY)
- IF(Subversion_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Subversion was not found.")
- ENDIF(Subversion_FIND_REQUIRED)
- ENDIF(NOT Subversion_FIND_QUIETLY)
-ENDIF(NOT Subversion_FOUND)
-
-# FindSubversion.cmake ends here.
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Subversion DEFAULT_MSG Subversion_SVN_EXECUTABLE)