summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-06-06 01:07:44 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-07-19 09:57:48 -0400
commitd0a42e04ad51a8ffe5b3cfef6da1113ce35797b0 (patch)
tree4ae022d1ea7fde9410680f97ab37081c3bae0012
parent7014efb1e52f5bea0f7fa15a2f70d2cbd69a3072 (diff)
soapy: use common precompiled headers
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
-rw-r--r--gr-soapy/lib/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-soapy/lib/CMakeLists.txt b/gr-soapy/lib/CMakeLists.txt
index 5d82736adf..c7667a2a59 100644
--- a/gr-soapy/lib/CMakeLists.txt
+++ b/gr-soapy/lib/CMakeLists.txt
@@ -20,6 +20,10 @@ target_link_libraries(gnuradio-soapy PUBLIC
${SoapySDR_LIBRARIES}
)
+if(ENABLE_COMMON_PCH)
+ target_link_libraries(gnuradio-soapy PRIVATE common-precompiled-headers)
+endif()
+
target_include_directories(gnuradio-soapy PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>