diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-06-05 22:13:58 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-07-19 09:57:48 -0400 |
commit | 217d12b2f13989869a2478c0749eca5f97f02bcc (patch) | |
tree | c4452f9f6904356ee70f3659c83e920bd5f06449 | |
parent | 8224d05bdceb6060e450d2e50117b10b1e071dd3 (diff) |
blocks: use common precompiled headers
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
-rw-r--r-- | gr-blocks/lib/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gr-blocks/lib/CMakeLists.txt b/gr-blocks/lib/CMakeLists.txt index cdffc6131c..00d5a55420 100644 --- a/gr-blocks/lib/CMakeLists.txt +++ b/gr-blocks/lib/CMakeLists.txt @@ -178,7 +178,16 @@ if (SNDFILE_FOUND) ) endif() -target_link_libraries(gnuradio-blocks ${BLOCKS_LIBS}) +if(ENABLE_COMMON_PCH) + set(PRIVATE_LIBS common-precompiled-headers) +endif() + +target_link_libraries(gnuradio-blocks + PUBLIC + ${BLOCKS_LIBS} + PRIVATE + ${PRIVATE_LIBS} + ) target_include_directories(gnuradio-blocks PUBLIC |