aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Amsel <lars.amsel@ni.com>2024-02-23 13:53:49 +0100
committerAki Tomita <121511582+atomita-ni@users.noreply.github.com>2024-02-29 10:17:07 -0600
commit7bc7e518b52ed8e3301c38a255103a93c9e6750f (patch)
tree1b22ebfa671c1d6f58441cff22071494a3d291b4
parentdoc: x440: Update stream.dox with X440 streaming capability (diff)
downloaduhd-7bc7e518b52ed8e3301c38a255103a93c9e6750f.tar.xz
uhd-7bc7e518b52ed8e3301c38a255103a93c9e6750f.zip
host: cmake: Verify find_library
If we do a find_library on UHD we have to verify that this call was successful and fail fatal if it wasn't. Otherwise subsequent steps in the cmake will fail with incomprehensible error messages.
-rw-r--r--host/cmake/Modules/UHDConfig.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/cmake/Modules/UHDConfig.cmake.in b/host/cmake/Modules/UHDConfig.cmake.in
index 38b539a09..afc901a27 100644
--- a/host/cmake/Modules/UHDConfig.cmake.in
+++ b/host/cmake/Modules/UHDConfig.cmake.in
@@ -84,6 +84,7 @@ find_library(
HINTS ${UHD_LIBDIR_HINTS}
PATHS /usr/local/lib
/usr/lib
+ REQUIRED
)
get_filename_component(UHD_LIB_PATH ${UHD_LIBRARIES} PATH)