From 9f98bb3f543c732a2d6f2053d5c448a21d740478 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 11 Jun 2020 11:07:06 +0200 Subject: [PATCH] disable prach_test_usrp compilation if no RF is selected --- lib/src/phy/phch/test/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/phy/phch/test/CMakeLists.txt b/lib/src/phy/phch/test/CMakeLists.txt index 60161429b..91f3562ba 100644 --- a/lib/src/phy/phch/test/CMakeLists.txt +++ b/lib/src/phy/phch/test/CMakeLists.txt @@ -582,8 +582,7 @@ add_test(prach_test_multi_n16 prach_test_multi -n 16) add_test(prach_test_multi_n8 prach_test_multi -n 8) add_test(prach_test_multi_n4 prach_test_multi -n 4) - -if(UHD_FOUND) +if(RF_FOUND) add_executable(prach_test_usrp prach_test_usrp.c) target_link_libraries(prach_test_usrp srslte_rf srslte_phy pthread) -endif(UHD_FOUND) +endif(RF_FOUND)