summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2021-01-14 05:47:24 -0800
committerMartin Braun <martin@gnuradio.org>2021-01-14 07:22:04 -0800
commit7bd7a81370d1ef1fb15240fa0a6d52fda0ee6dc1 (patch)
tree2cde841964114c196818e72f88075ab5f918e313 /gnuradio-runtime/lib
parent41e229d4238b4fec6167b7944bbefb9f2873c330 (diff)
cmake: Fixup BUILD_DATE commit.
Signed-off-by: Ron Economos <w6rz@comcast.net>
Diffstat (limited to 'gnuradio-runtime/lib')
-rw-r--r--gnuradio-runtime/lib/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt
index 5a21a73a40..223a514931 100644
--- a/gnuradio-runtime/lib/CMakeLists.txt
+++ b/gnuradio-runtime/lib/CMakeLists.txt
@@ -19,10 +19,7 @@ endif(libunwind_FOUND)
########################################################################
# Handle the generated constants
########################################################################
-execute_process(COMMAND ${PYTHON_EXECUTABLE} -c
- "import time;print(time.strftime('%a, %d %b %Y %H:%M:%S', time.gmtime()))"
- OUTPUT_VARIABLE BUILD_DATE OUTPUT_STRIP_TRAILING_WHITESPACE
-)
+string(TIMESTAMP BUILD_DATE "%a, %d %b %Y %H:%M:%S" UTC)
message(STATUS "Loading build date ${BUILD_DATE} into constants...")
message(STATUS "Loading version ${VERSION} into constants...")