Fixed by this commit:
https://github.com/gnuradio/gnuradio/commit/79ae0042ff0ec3c20f67820c11adae5442236274
That commit is included in GNU Radio 3.8.1.0
Ron
On 4/29/20 09:28, Tom McDermott wrote:
> Trying to port an OOT module to gr3.8.
>
> I generated a new 3.8 project from scratch using gr_modtool.
> Running cmake generates an error, and looking at the last mine of
> lib/CmakeLists.txt it appears that the
> generator may have incorrectly constructed the final line(s) of the
> file where it builds the qa files.
>
> Here's what was auto-generated by the tool:
>
> ...snip most...
>
> # If your unit tests require special include paths, add them here
> #include_directories()
> # List all files that contain Boost.UTF unit tests here
> list(APPEND test_hpsdr_sources
> )
> # Anything we need to link to for the unit tests go here
> list(APPEND GR_TEST_TARGET_DEPS gnuradio-hpsdr)
>
> if(NOT test_hpsdr_sources)
> MESSAGE(STATUS "No C++ unit tests... skipping")
> return()
> endif(NOT test_hpsdr_sources)
>
> foreach(qa_file ${test_hpsdr_sources})
> GR_ADD_CPP_TEST("hpsdr_${qa_file}"
> ${CMAKE_CURRENT_SOURCE_DIR}/${qa_file}
> )
> endforeach(qa_file)
> ${CMAKE_CURRENT_SOURCE_DIR}/qa_hermesNB.cc
> ${CMAKE_CURRENT_SOURCE_DIR}/qa_hermesWB.cc
>
>
> Cmake is complaining about the last line not containing a command.
> Note that the last line is also missing
> the trailing newline character. I added that, no change to the error.
>
> I resolved temporarily the problem by commenting out the very last
> line of the lib/CmakeLists.txt file, but then of course
> no tests get generated (but at least then the OOT Cmake completes).
>
> I'm not fluent in Cmake, so is it obvious how to fix?
>
> -- Tom, N5EG
>
>
No comments:
Post a Comment