Enforce gcc/g++-11 when building 7.2 FHI through xran

This commit is contained in:
Robert Schmidt
2024-06-05 17:01:35 +02:00
parent 98e9129d69
commit 489824fdcf
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -1,3 +1,10 @@
# we need at least gcc-11 to build xran, so let's enforce it here
# (because xran might not check it, and we have control here)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0
OR CMAKE_C_COMPILER_VERSION VERSION_LESS 11.0)
message(FATAL_ERROR "you need to have at least gcc/g++-11 to use 7.2 FHI through xran")
endif()
# use env var PKG_CONFIG_PATH to override paths to libdpdk.pc
pkg_check_modules(dpdk REQUIRED libdpdk)
pkg_check_modules(numa REQUIRED numa)