EttusResearch / uhd

The USRP™ Hardware Driver Repository
http://uhd.ettus.com
Other
946 stars 646 forks source link

UHD version is incorrect #649

Closed mmaroti closed 1 year ago

mmaroti commented 1 year ago

Issue Description

When building the UHD host library with mkdir build && cd build && cmake .., then the UHD version information is correctly set and reported in the uhd_config_info. However, if you do another cmake .. in the build directory, either before or after make, then the UHD version is lost, and no version will be reported in uhd_config_info.

Setup Details

Expected Behavior

After the second cmake .. step the version string should stay the same.

Actual Behaviour

After the first cmake .. I get -- Building version: 4.3.0.0-0-g1f8fd345. But after the second one I get -- Building version:. Also the reported version will be missing in uhd_version_info. This causes GNURadio to disable RFNoC components.

mbr0wn commented 1 year ago

Hey @mmaroti, thanks for submitting. FYI we had already fixed this on 38726c1c967f553a10cc8d2a3d721a51cbb04a46 a while ago. I ran into the exact same issue :/