diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-05-01 10:53:00 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-05-07 10:30:58 -0500 |
commit | 75b7991378e3f465f9d91cba597d98ee5b9054ed (patch) | |
tree | b3fb07771adf5ee391dfc8c938fc10a496b7dd48 /host/utils/usrp2_card_burner.py | |
parent | 4e775027871a7676bb49076cf56638aef2529bfe (diff) | |
download | uhd-75b7991378e3f465f9d91cba597d98ee5b9054ed.tar.gz uhd-75b7991378e3f465f9d91cba597d98ee5b9054ed.tar.bz2 uhd-75b7991378e3f465f9d91cba597d98ee5b9054ed.zip |
python: Fix RPATH for the Python library
On UNIX systems, CMake will set the RPATH of the Python library to the
build directory, which is very helpful because it allows unit and other
tests to be executed from within the build directory.
On installation, the RPATH is removed, but only if install(TARGETS) is
used, which we were not, thus resulting in incorrect RPATHs.
This would surface as a bug, too. Calling uhd.get_lib_path() would
always point to the build directory, thus resulting in no FPGA images
being found automatically, e.g. when running a B200 through the Python
API.
This change installs the Python .so file separately, using the correct
CMake mechanisms.
Diffstat (limited to 'host/utils/usrp2_card_burner.py')
0 files changed, 0 insertions, 0 deletions