From 12d627f3a745ba14888e19857c797a0234ba9198 Mon Sep 17 00:00:00 2001
From: Sebastian Goth <seezer@roath.org>
Date: Thu, 26 Apr 2012 14:04:59 +0200
Subject: [PATCH] Don't break build if CMAKE_DATESTAMP_* is null

The If-statement breaks whenever cmake substitutes TOMAHAWK_VERSION_DATE to null
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ca0817ea..edfd21fcc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,7 +50,7 @@ ENDIF()
 IF( NOT BUILD_RELEASE )
     INCLUDE( CMakeDateStamp )
     SET( TOMAHAWK_VERSION_DATE "${CMAKE_DATESTAMP_YEAR}${CMAKE_DATESTAMP_MONTH}${CMAKE_DATESTAMP_DAY}" )
-    IF( ${TOMAHAWK_VERSION_DATE} GREATER 0)
+    IF( TOMAHAWK_VERSION_DATE GREATER 0)
         SET( TOMAHAWK_VERSION ${TOMAHAWK_VERSION}.${TOMAHAWK_VERSION_DATE} )
     ENDIF()