From 93acdfe3808ba8aca6c04cbf2474d6e8db39a0ee Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Tue, 28 Apr 2020 16:56:29 +0200 Subject: host: cmake: add boost unit_test_framework required iff ENABLE_TESTS=ON --- host/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'host') 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}) -- cgit v1.2.3