Use VERSION_LESS in the version detection code.
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 27 Jun 2012 05:44:24 +0000 (08:44 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 27 Jun 2012 05:44:24 +0000 (08:44 +0300)
There was a comment in the cmake script that suggested this, and it is
already used elsewhere in the cmake code.

Change-Id: Ic63c52510d37b864f2f39c8bc2f3806783405cc2

cmake/gmxGenerateVersionInfo.cmake

index 754806e2c9ede36bd81bc123c412bade2c59961a..8d65b676dd0185f0ae5d1f3560d69de45a82a829 100644 (file)
@@ -47,9 +47,8 @@ endif()
 
 # if git executable exists and it's compatible version
 # build the development version string
-# this should at some point become VERSION_LESS
-if(EXISTS "${GIT_EXECUTABLE}" AND NOT GIT_VERSION STRLESS "1.5.3")
-    # refresh git index 
+if(EXISTS "${GIT_EXECUTABLE}" AND NOT GIT_VERSION VERSION_LESS "1.5.3")
+    # refresh git index
     execute_process(COMMAND ${GIT_EXECUTABLE} update-index -q --refresh
         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
         TIMEOUT 5