From 5c772f45b42942111aa7a8c65589de658e685b29 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 16 Jan 2016 15:47:13 +0100 Subject: [PATCH] Changed: Update year in copyright automatically --HG-- branch : develop --- code/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 25e64db27..69603d64b 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -44,12 +44,18 @@ CHECK_OUT_OF_SOURCE() # To be able to specify a different deployment target on Mac OS X : # export MACOSX_DEPLOYMENT_TARGET=10.6 +IF(CMAKE_VERSION VERSION_GREATER "2.8.10") + STRING(TIMESTAMP CURRENT_YEAR "%Y") +ELSE() + SET(CURRENT_YEAR "2016") +ENDIF() + CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(RyzomCore CXX C) SET(NL_VERSION_MAJOR 0) SET(NL_VERSION_MINOR 12) SET(NL_VERSION_PATCH 0) -SET(YEAR "2004-2015") +SET(YEAR "2004-${CURRENT_YEAR}") SET(AUTHOR "Winchgate and The Ryzom Core Community") #-----------------------------------------------------------------------------