aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-02-15 11:24:54 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-24 13:48:10 -0600
commit1d0806092491dc172ba31312840df02d8ec0b11a (patch)
tree5441fe97b61d4fc01c1f3a5be8cb2946f71e90e8 /host
parentb11f1153c8d5f00e9a4733757806934c9f82f79e (diff)
downloaduhd-1d0806092491dc172ba31312840df02d8ec0b11a.tar.gz
uhd-1d0806092491dc172ba31312840df02d8ec0b11a.tar.bz2
uhd-1d0806092491dc172ba31312840df02d8ec0b11a.zip
Build uhd_test library as static when `-DBUILD_SHARED_LIBS=ON`
* A uhd_test.so lacks the necessary symbols for testing due to default visibility set to hidden.
Diffstat (limited to 'host')
-rw-r--r--host/tests/common/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/tests/common/CMakeLists.txt b/host/tests/common/CMakeLists.txt
index ac0e1b449..36c9f9b07 100644
--- a/host/tests/common/CMakeLists.txt
+++ b/host/tests/common/CMakeLists.txt
@@ -8,6 +8,6 @@
# Build uhd_test static lib
########################################################################
include_directories("${UHD_SOURCE_DIR}/lib/include")
-add_library(uhd_test
+add_library(uhd_test STATIC
${CMAKE_CURRENT_SOURCE_DIR}/mock_zero_copy.cpp
)