summaryrefslogtreecommitdiff
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2021-01-22 21:51:55 -0600
committerMartin Braun <martin@gnuradio.org>2021-01-27 07:31:08 -0800
commitb3f2edadb719c7d639fb48e48368121ec6eee911 (patch)
tree822b6a27c0ecd752ed5c06da6482c55280d34489 /gnuradio-runtime
parent6ba5747e48a9154f21ca425919f51c91c97d4d6f (diff)
runtime: replace /dev/stdin in sine table generator
/dev/stdin does not exist and was replaced by directing stdout to the file rather than piping stdout to the stdin of an install command Signed-off-by: Josh Blum <josh@joshknows.com>
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/lib/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt
index 0de4459a0d..e5b55c01a8 100644
--- a/gnuradio-runtime/lib/CMakeLists.txt
+++ b/gnuradio-runtime/lib/CMakeLists.txt
@@ -42,10 +42,11 @@ add_subdirectory(pmt)
#Generate sine table header file for Math part of library
set(MATH_SINE_TABLE_HEADER ${CMAKE_CURRENT_BINARY_DIR}/math/generated/sine_table.h)
set(MATH_SINE_TABLE_GENERATOR ${CMAKE_CURRENT_SOURCE_DIR}/math/gen_sine_table.py)
+execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/math/generated")
add_custom_command(
DEPENDS ${MATH_SINE_TABLE_GENERATOR}
OUTPUT ${MATH_SINE_TABLE_HEADER}
- COMMAND ${PYTHON_EXECUTABLE} ${MATH_SINE_TABLE_GENERATOR} | install -D /dev/stdin ${MATH_SINE_TABLE_HEADER}
+ COMMAND ${PYTHON_EXECUTABLE} ${MATH_SINE_TABLE_GENERATOR} > ${MATH_SINE_TABLE_HEADER}
)
add_library(gnuradio-runtime