Cmake can't find UHD when building init_usrp example

230 Views Asked by At

When attempting to build the UHD init_usrp example in ../host/examples/init_usrp, cmake fails to find UHD. The CMakeLists.txt file for that example contains a line find_package(UHD 4.1.0 REQUIRED). Whatever is not happening there casues UHD_LIBRARIES and UHD_INCLUDE_DIRS not to be set in UHDConfig.cmake which then fails when it tries to perform get_filename_component.

I've built and installed UHD-4.4.0.0 from the master branch and am using cmake 3.26.

I'm at a loss for why it can't find UHD and set those vars correctly. I've tried taking the file FindUHD.cmake from gnuradio but that has not helped.

0

There are 0 best solutions below