]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Force reconfiguration on new commits
authorMattia Basaglia <mattia.basaglia@gmail.com>
Wed, 29 Jul 2015 15:31:27 +0000 (17:31 +0200)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Wed, 29 Jul 2015 15:31:27 +0000 (17:31 +0200)
CMakeLists.txt

index f3fe939548371680dafa84c6c874a232d707546d..aed33ce6a5efb92aa6a515ef033cc80b61be35a2 100644 (file)
@@ -13,9 +13,14 @@ set(Q3MAP_STREAM_VERSION 1)
 set(RADIANT_VERSION_STRING "${NetRadiant_VERSION}n${GIT_VERSION}")
 execute_process(COMMAND git rev-parse --short HEAD
     OUTPUT_VARIABLE GIT_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
+
 if(GIT_VERSION)
     set(RADIANT_VERSION_STRING "${RADIANT_VERSION_STRING}-git-${GIT_VERSION}")
     set(Q3MAP_VERSION "${Q3MAP_VERSION}-git-${GIT_VERSION}")
+    add_custom_target(version_git ALL
+        COMMAND [ "`git rev-parse --short HEAD`" != "${GIT_VERSION}" ] && ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR}
+        VERBATIM
+    )
 endif()
 
 if(WIN32)