aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-01-21 21:27:06 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-01-26 14:48:46 -0600
commit3e97df7a8035dbf93a5224153ffacad8b6530a95 (patch)
tree4051b14584ef63dcf3ddc433b73f0637ffe593f2 /host/cmake
parent739b37ba40e7aba288ed781922aa8fa3b1bfc16e (diff)
downloaduhd-3e97df7a8035dbf93a5224153ffacad8b6530a95.tar.gz
uhd-3e97df7a8035dbf93a5224153ffacad8b6530a95.tar.bz2
uhd-3e97df7a8035dbf93a5224153ffacad8b6530a95.zip
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
Diffstat (limited to 'host/cmake')
-rw-r--r--host/cmake/Modules/UHDBoost.cmake2
1 files changed, 1 insertions, 1 deletions
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)