diff options
author | Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> | 2020-04-28 16:56:29 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-29 15:06:23 -0500 |
commit | 93acdfe3808ba8aca6c04cbf2474d6e8db39a0ee (patch) | |
tree | a033da1607c39aa47b62b2a5b70337e8f2d29d4d /host | |
parent | b78e06df03ad2c5cdf1828f162bf8c21ad4b5e4f (diff) | |
download | uhd-93acdfe3808ba8aca6c04cbf2474d6e8db39a0ee.tar.gz uhd-93acdfe3808ba8aca6c04cbf2474d6e8db39a0ee.tar.bz2 uhd-93acdfe3808ba8aca6c04cbf2474d6e8db39a0ee.zip |
host: cmake: add boost unit_test_framework required iff ENABLE_TESTS=ON
Diffstat (limited to 'host')
-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}) |