diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2021-03-12 13:39:00 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-03-13 13:13:04 -0500 |
commit | 33f8a4be0ff590e1aa4375af6104f09d39b85768 (patch) | |
tree | 1ae36bd2ef4ca1d1b74e1d706f5022967f13bbf6 /gnuradio-runtime | |
parent | 72c013a798cd3f4ace6f0fcf09f0c238cbfcabdb (diff) |
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 'gnuradio-runtime')
-rw-r--r-- | gnuradio-runtime/lib/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt index 1b908928ec..094eacdab4 100644 --- a/gnuradio-runtime/lib/CMakeLists.txt +++ b/gnuradio-runtime/lib/CMakeLists.txt @@ -218,6 +218,9 @@ target_link_libraries(gnuradio-runtime PUBLIC Python::Python ) +# Address linker issues with std::filesystem on Centos 8 and Debian +target_link_libraries(gnuradio-runtime PUBLIC $<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:stdc++fs>) + target_include_directories(gnuradio-runtime PUBLIC ${PYTHON_NUMPY_INCLUDE_DIR} |