diff options
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | gnuradio-runtime/lib/CMakeLists.txt | 5 |
2 files changed, 1 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a5e510b9..71aa05c9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -532,16 +532,6 @@ CONFIGURE_FILE( ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-runtime/include/gnuradio/config.h ) -######################################################################## -# Handle the generated constants -######################################################################## - -# Use TIMESTAMP to be compatible with reproducible builds -# and put in in the cache so configure_file sees it -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...") - # Install config.h in include/gnuradio install( FILES diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt index 5a21a73a4..223a51493 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...") |