]> granicus.if.org Git - icinga2/commitdiff
Improve compatibility with sles11
authorJean-Marcel Flach <jean-marcel.flach@netways.de>
Tue, 21 Apr 2015 13:26:31 +0000 (15:26 +0200)
committerJean-Marcel Flach <jean-marcel.flach@netways.de>
Tue, 21 Apr 2015 13:29:09 +0000 (15:29 +0200)
third-party/cmake/FindGit.cmake

index 1d79f61df988e112c719950b2e657e82449a7d5b..d23e6f1ca3785d28a4ffaed518fae79218325e5b 100644 (file)
@@ -63,7 +63,6 @@ if(GIT_EXECUTABLE)
   if (git_version MATCHES "^git version [0-9]")
     string(REPLACE "git version " "" GIT_VERSION_STRING "${git_version}")
   endif()
-  unset(git_version)
 endif()
 
 # Handle the QUIETLY and REQUIRED arguments and set GIT_FOUND to TRUE if
@@ -71,4 +70,4 @@ endif()
 
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(Git GIT_EXECUTABLE
-                                      GIT_VERSION_STRING)
\ No newline at end of file
+                                      GIT_VERSION_STRING)