From 1d0806092491dc172ba31312840df02d8ec0b11a Mon Sep 17 00:00:00 2001 From: David Seifert Date: Tue, 15 Feb 2022 11:24:54 +0100 Subject: 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. --- host/tests/common/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/tests/common') 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 ) -- cgit v1.2.3