aboutsummaryrefslogtreecommitdiffstats
path: root/host/config
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-13 20:27:00 -0700
committerJosh Blum <josh@joshknows.com>2010-07-13 20:27:00 -0700
commit1f1651ba46e55017bf598f0824b62be5ae2c5fd8 (patch)
tree097f8b55bd207fdee3c4c1f8149d15914658135a /host/config
parent3f1d313c9ffd30c70c609748696b746633e47a8a (diff)
downloaduhd-1f1651ba46e55017bf598f0824b62be5ae2c5fd8.tar.gz
uhd-1f1651ba46e55017bf598f0824b62be5ae2c5fd8.tar.bz2
uhd-1f1651ba46e55017bf598f0824b62be5ae2c5fd8.zip
uhd: time for version minor, path tweaks, notes on windows command line compilation
Diffstat (limited to 'host/config')
-rw-r--r--host/config/CPack.cmake14
1 files changed, 10 insertions, 4 deletions
diff --git a/host/config/CPack.cmake b/host/config/CPack.cmake
index a73a00923..ed4aeb717 100644
--- a/host/config/CPack.cmake
+++ b/host/config/CPack.cmake
@@ -23,7 +23,7 @@ SET(UHD_VERSION_MINOR 0)
SET(UHD_VERSION_PATCH 0)
########################################################################
-# Get the current YYYYMMDD timestamp
+# Get the current YYYYMMDD HHMMSS timestamp
########################################################################
EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} -c "import time; print time.strftime('%Y%m%d', time.gmtime())"
@@ -31,6 +31,12 @@ EXECUTE_PROCESS(
)
SET(UHD_VERSION_MAJOR ${UHD_DATE})
+EXECUTE_PROCESS(
+ COMMAND ${PYTHON_EXECUTABLE} -c "import time; print time.strftime('%H%M%S', time.gmtime())"
+ OUTPUT_VARIABLE UHD_TIME OUTPUT_STRIP_TRAILING_WHITESPACE
+)
+SET(UHD_VERSION_MINOR ${UHD_TIME})
+
########################################################################
# Find GIT to get repo information
########################################################################
@@ -47,7 +53,7 @@ ELSE(${GIT} STREQUAL "GIT-NOTFOUND")
OUTPUT_VARIABLE UHD_REV OUTPUT_STRIP_TRAILING_WHITESPACE
)
ENDIF(${GIT} STREQUAL "GIT-NOTFOUND")
-SET(UHD_VERSION_MINOR ${UHD_REV})
+SET(UHD_VERSION_PATCH ${UHD_REV})
########################################################################
# Setup CPack
@@ -58,8 +64,8 @@ SET(CPACK_PACKAGE_CONTACT "support@ettus.com")
SET(CPACK_PACKAGE_VERSION_MAJOR ${UHD_VERSION_MAJOR})
SET(CPACK_PACKAGE_VERSION_MINOR ${UHD_VERSION_MINOR})
SET(CPACK_PACKAGE_VERSION_PATCH ${UHD_VERSION_PATCH})
-SET(CPACK_RESOURCE_FILE_README ${CMAKE_CURRENT_SOURCE_DIR}/README)
-SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE)
+SET(CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README)
+SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE)
SET(BOOST_MIN_VERSION 1.36) #used in setup for boost
STRING(REPLACE "," ", " CPACK_DEBIAN_PACKAGE_DEPENDS
"libboost-date-time-dev (>= ${BOOST_MIN_VERSION}),"