aboutsummaryrefslogtreecommitdiffstats
path: root/images/CMakeLists.txt
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-29 09:45:08 -0700
committerJosh Blum <josh@joshknows.com>2011-07-29 09:45:08 -0700
commit49330ed43307bc2fae1dacb0b12ec3186bca8249 (patch)
treecda76a2c99aab9a9a37fe9325fdaa7ba9669eab4 /images/CMakeLists.txt
parent043c586ff8745b0cc01ed173d23951289dbcffcf (diff)
downloaduhd-49330ed43307bc2fae1dacb0b12ec3186bca8249.tar.gz
uhd-49330ed43307bc2fae1dacb0b12ec3186bca8249.tar.bz2
uhd-49330ed43307bc2fae1dacb0b12ec3186bca8249.zip
uhd: incr minor, add date to images tag, add package target to makefile
Diffstat (limited to 'images/CMakeLists.txt')
-rw-r--r--images/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/images/CMakeLists.txt b/images/CMakeLists.txt
index c9e5c68b9..af4d23fb0 100644
--- a/images/CMakeLists.txt
+++ b/images/CMakeLists.txt
@@ -22,6 +22,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(UHD-images NONE)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../host/cmake/Modules)
INCLUDE(UHDVersion) #sets version variables (used below)
+EXECUTE_PROCESS(COMMAND "date" OUTPUT_VARIABLE DATETIME_NOW OUTPUT_STRIP_TRAILING_WHITESPACE) #sets the date
########################################################################
# Setup CPack
@@ -41,5 +42,5 @@ MESSAGE(STATUS "Version: ${CPACK_PACKAGE_VERSION}")
# Install Images
########################################################################
#tag the images with a version number (something identifiable)
-FILE(WRITE ${CMAKE_SOURCE_DIR}/images/${CPACK_PACKAGE_VERSION}.tag ${UHD_BUILD_INFO})
+FILE(WRITE ${CMAKE_SOURCE_DIR}/images/${CPACK_PACKAGE_VERSION}.tag "${CPACK_PACKAGE_VERSION}-${UHD_BUILD_INFO}\n${DATETIME_NOW}\n")
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/images DESTINATION share/uhd)