X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2FCMakeLists.txt;h=7723e6bad5df86141a78a058220444cdce4fa95a;hb=98bd75778736d4322db5ee7ecf5c548133e05d0f;hp=3998ae6f6a6831555aa71ddef1dac4c2a95089b1;hpb=104112f2d412a4576b5e0d3bbb20665d2b5bd615;p=vpp.git diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index 3998ae6f6a6..7723e6bad5d 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -18,6 +18,13 @@ enable_language(ASM) ############################################################################## set(LOG2_CACHE_LINE_BYTES ${VPP_LOG2_CACHE_LINE_SIZE}) +option(VPP_VECTOR_GROW_BY_ONE "Vectors grow by one, instead of 3/2" OFF) +if(VPP_VECTOR_GROW_BY_ONE) + set(VECTOR_GROW_BY_ONE 1) +else(VPP_VECTOR_GROW_BY_ONE) + set(VECTOR_GROW_BY_ONE 0) +endif(VPP_VECTOR_GROW_BY_ONE) + configure_file( ${CMAKE_SOURCE_DIR}/vppinfra/config.h.in ${CMAKE_BINARY_DIR}/vppinfra/config.h