aboutsummaryrefslogtreecommitdiffstats
path: root/gr-fft
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2021-03-12 13:39:00 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-03-13 13:13:04 -0500
commit33f8a4be0ff590e1aa4375af6104f09d39b85768 (patch)
tree1ae36bd2ef4ca1d1b74e1d706f5022967f13bbf6 /gr-fft
parentReplace boost::filesystem with std::filesystem (diff)
downloadgnuradio-33f8a4be0ff590e1aa4375af6104f09d39b85768.tar.xz
gnuradio-33f8a4be0ff590e1aa4375af6104f09d39b85768.zip
cmake: add compiler version statements
Where std::filesystem is used to allow linking properly on Debian and Centos 8 Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-fft')
-rw-r--r--gr-fft/lib/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-fft/lib/CMakeLists.txt b/gr-fft/lib/CMakeLists.txt
index 48495f03f..6ab4ea4b9 100644
--- a/gr-fft/lib/CMakeLists.txt
+++ b/gr-fft/lib/CMakeLists.txt
@@ -22,6 +22,9 @@ target_link_libraries(gnuradio-fft PUBLIC
Volk::volk
)
+# Address linker issues with std::filesystem on Centos 8 and Debian
+target_link_libraries(gnuradio-fft PRIVATE $<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:stdc++fs>)
+
target_include_directories(gnuradio-fft
PUBLIC
$<INSTALL_INTERFACE:include>