From: Mattia Basaglia Date: Wed, 29 Jul 2015 15:31:27 +0000 (+0200) Subject: Force reconfiguration on new commits X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=977ae841da1123453d6dd323d2858a249c82af37;p=xonotic%2Fnetradiant.git Force reconfiguration on new commits --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f3fe9395..aed33ce6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)