uhd/mpm/python
Martin Braun 09d94529e5 cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR
See the CMake 3.8 documentation on these two variables:
https://cmake.org/cmake/help/v3.8/variable/PROJECT-NAME_SOURCE_DIR.html
https://cmake.org/cmake/help/v3.8/variable/CMAKE_SOURCE_DIR.html

Under normal circumstances, these two are identical. For sub-projects
(i.e., when building UHD as part of something else that is also a CMake
project), only the former is useful. There is no discernible downside of
using UHD_SOURCE_DIR over CMAKE_SOURCE_DIR.

This was changed using sed:

$ sed -i "s/CMAKE_SOURCE_DIR/UHD_SOURCE_DIR/g" \
    `ag -l CMAKE_SOURCE_DIR **/{CMakeLists.txt,*.cmake}`
$ sed -i "s/CMAKE_BINARY_DIR/UHD_BINARY_DIR/g" \
    `ag -l CMAKE_BINARY_DIR **/{CMakeLists.txt,*.cmake}`

At the same time, we also replace the CMake variable UHD_HOST_ROOT (used
in MPM) with UHD_SOURCE_DIR. There's no reason to have two variables
with the same meaning and different names, but more importantly, this
means that UHD_SOURCE_DIR is defined even in those cases where MPM calls
into CMake files from UHD without any additional patches.

Shoutout to GitHub user marcobergamin for bringing this up.
2021-09-10 15:08:10 -05:00
..
pyusrp_periphs uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
tests mpm: tests: Add lib/ to library load path 2021-06-18 07:28:28 -05:00
usrp_mpm cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR 2021-09-10 15:08:10 -05:00
aurora_bist_test.py mpm: n3xx: Fix usage of UIO in Aurora tests 2018-03-01 18:34:28 -08:00
CMakeLists.txt cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR 2021-09-10 15:08:10 -05:00
copy_python_module.cmake cmake: Update coding style to use lowercase commands 2018-11-14 14:10:09 -08:00
e320_bist mpm: e320/e310: Expose APIs to drive GPIO source via UHD 2020-01-23 11:37:51 -08:00
n3xx_bist mpm: Remove references to rfnoc_num_blocks 2021-04-12 15:14:45 -05:00
setup.py.in cmake: Add RegMaps build component to MPM 2021-03-01 15:57:01 -06:00
socket_test.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
test_lmk.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
usrp_hwd.py sim: Integrate simulator into UHD 2020-10-28 15:25:48 -05:00
usrp_update_fs mpm: Update usrp_update_fs to support X410 2021-07-08 00:05:43 -07:00
x4xx_bist x4xx_bist: use get_mpm_client in gpio bist 2021-09-02 13:34:22 -05:00