diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-06-05 18:22:27 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-07-19 09:57:48 -0400 |
commit | d7cb2b6befb27c640f0d6be4a1af75e7bdf454a5 (patch) | |
tree | 9368d02c484b476aeac9980d84335bb7a04ac1cc | |
parent | 2d51507e10f767ddc941220860b7ebfd29e6c15e (diff) |
runtime: add precompile headers for internal use
Can't sensibly use the common precompiled headers (from a future
commit), as flags won't be the same.
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
-rw-r--r-- | gnuradio-runtime/lib/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt index 9db44ff552..f37b8ba24e 100644 --- a/gnuradio-runtime/lib/CMakeLists.txt +++ b/gnuradio-runtime/lib/CMakeLists.txt @@ -156,6 +156,14 @@ target_compile_definitions(gnuradio-runtime PUBLIC ${MPLIB_DEFINITIONS}) # constants.cc includes boost::dll headers, force them to use std::filesystem target_compile_definitions(gnuradio-runtime PRIVATE BOOST_DLL_USE_STD_FS) +if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0") + target_precompile_headers( + gnuradio-runtime + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/../include/gnuradio/sync_block.h + ) +endif() + ######################################################################## # Add controlport stuff to gnuradio-runtime ######################################################################## |