diff options
-rw-r--r-- | host/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 2d966fd22..2c5c053b5 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -288,10 +288,14 @@ set(UHD_BOOST_REQUIRED_COMPONENTS filesystem program_options system - unit_test_framework serialization thread ) + +if(ENABLE_TESTS) + list(APPEND UHD_BOOST_REQUIRED_COMPONENTS unit_test_framework) +endif(ENABLE_TESTS) + include(UHDBoost) include_directories(${Boost_INCLUDE_DIRS}) |