summaryrefslogtreecommitdiffstats
path: root/host/config/Version.cmake
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-17 11:05:28 -0700
committerJosh Blum <josh@joshknows.com>2010-08-17 11:05:28 -0700
commit977651fd5710b1201b28b0cc4b6a9b0bd9871166 (patch)
tree6ba380ddf145920bfdac166d36cc7cc9cab23d6d /host/config/Version.cmake
parent7d110e73e6b0651f73e8e5b165244f59e66fed87 (diff)
downloaduhd-977651fd5710b1201b28b0cc4b6a9b0bd9871166.tar.gz
uhd-977651fd5710b1201b28b0cc4b6a9b0bd9871166.tar.bz2
uhd-977651fd5710b1201b28b0cc4b6a9b0bd9871166.zip
uhd: add space to multiline string so quotes in the string cant disturb the multiline quotes
Diffstat (limited to 'host/config/Version.cmake')
-rw-r--r--host/config/Version.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/config/Version.cmake b/host/config/Version.cmake
index a592a4565..9e4b6b306 100644
--- a/host/config/Version.cmake
+++ b/host/config/Version.cmake
@@ -42,7 +42,7 @@ ELSE(${GIT} STREQUAL "GIT-NOTFOUND")
#extract the timestamp from the git log entry
EXECUTE_PROCESS(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
- COMMAND ${PYTHON_EXECUTABLE} -c "import re; print re.match('^.*Date:\\s*(\\d*).*$', '''${_git_log}''', re.MULTILINE | re.DOTALL).groups()[0]"
+ COMMAND ${PYTHON_EXECUTABLE} -c "import re; print re.match('^.*Date:\\s*(\\d*).*$', ''' ${_git_log} ''', re.MULTILINE | re.DOTALL).groups()[0]"
OUTPUT_VARIABLE _git_timestamp OUTPUT_STRIP_TRAILING_WHITESPACE
)