From 3e97df7a8035dbf93a5224153ffacad8b6530a95 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 21 Jan 2022 21:27:06 +0100 Subject: cmake: uhdboost: Fix check for UHD_BOOST_REQUIRED being set Previously, applying `-DUHD_BOOST_REQUIRED` to the cmake command line would do nothing. Now, it is possible to skip Boost checking, e.g., to only build the manual by calling cmake -DUHD_BOOST_REQUIRED=OFF -DENABLE_LIBUHD=OFF --- host/cmake/Modules/UHDBoost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/cmake') diff --git a/host/cmake/Modules/UHDBoost.cmake b/host/cmake/Modules/UHDBoost.cmake index eed94cbfe..51aa1e238 100644 --- a/host/cmake/Modules/UHDBoost.cmake +++ b/host/cmake/Modules/UHDBoost.cmake @@ -65,7 +65,7 @@ unset(Boost_LIBRARIES) # check whether to set REQUIRED or not # if not set, default is to require Boost -if(NOT UHD_BOOST_REQUIRED) +if(NOT DEFINED UHD_BOOST_REQUIRED) # UHD_BOOST_REQUIRED is not set; use the default set(UHD_BOOST_REQUIRED "REQUIRED") elseif(UHD_BOOST_REQUIRED) -- cgit v1.2.3