From 6a3e39534bac7b16a44e668d31f80dcaf5cc86e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20M=C3=BCller?= Date: Thu, 17 Sep 2015 15:58:35 +0200 Subject: [PATCH] examples: Added UHD library dir to CMakeLists.txt without, linkage fails if UHD shared library is not installed in the default location on Fedora 22. --- srslte/examples/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srslte/examples/CMakeLists.txt b/srslte/examples/CMakeLists.txt index 24f0e37a1..2b7a7696f 100644 --- a/srslte/examples/CMakeLists.txt +++ b/srslte/examples/CMakeLists.txt @@ -19,6 +19,9 @@ # and at http://www.gnu.org/licenses/. # +IF(UHD_FOUND) + LINK_DIRECTORIES(${UHD_LIBRARY_DIRS}) +ENDIF(UHD_FOUND) ################################################################# # EXAMPLES