aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/CMakeLists.txt2
-rw-r--r--host/config/CPack.cmake14
-rw-r--r--host/docs/build.rst6
3 files changed, 17 insertions, 5 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 8ae651eca..086e63a2f 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -38,7 +38,7 @@ MESSAGE(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}")
########################################################################
# Local Include Dir
########################################################################
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
########################################################################
# Optional Compiler Flags
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}),"
diff --git a/host/docs/build.rst b/host/docs/build.rst
index 108d8dc8b..5944a6ebe 100644
--- a/host/docs/build.rst
+++ b/host/docs/build.rst
@@ -148,6 +148,12 @@ Build the project in MSVC
**Note:** you may not have permission to build the install target.
You need to be an administrator or to run MSVC as administrator.
+** alternative command line instructions **
+
+* Open the Visual Studio Command Prompt Shorcut
+* DevEnv <uhd-repo-path>\host\build\ALL_BUILD.vcproj /Build Release
+* DevEnv <uhd-repo-path>\host\build\INSTALL.vcproj /Build Release
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Setup the PATH environment variable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^